Coordinate calibration method for multiple cameras, multiple cameras and electronic equipment

By using the target color light source trajectory with a color difference greater than the preset value in a multi-camera airport scene, the relative coordinate calibration of wide-angle cameras and ball machines is realized, solving the accuracy of coordinate calibration in a multi-camera airport scene, and improving the calibration efficiency and accuracy of calibration sex.

CN118941636APending Publication Date: 2024-11-12ZHEJIANG UNIVIEW TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310534561.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-10
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In multi-camera airport scenes, the relative position and rotation angle of the wide-angle camera and the ball machine are difficult to accurately calibrate, resulting in the ball machine being unable to accurately rotate to the target position shown by the wide-angle camera, especially in scenes where the color information of a single picture is relatively similar, the recognition rate and reduce accuracy.

Method used

By taking the target color as the light source, rotating along the vertical dimension, the second image capturing device determines the first track and the second track based on the color difference of the color greater than the preset value, realizes coordinate calibration, and uses the light source track of two dimensions to automatically Calibration to improve the accuracy of trajectory determination.

Benefits of technology

Automatic calibration of multi-camera coordinates is realized, which improves calibration accuracy and efficiency, avoids the need for users to manually mark the edges of the screen, and is suitable for scenes with single and non-single pictures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118941636A_ABST
    Figure CN118941636A_ABST
Patent Text Reader

Abstract

The invention provides a multi-camera coordinate calibration method, multiple cameras and electronic equipment, and relates to the technical field of camera shooting, and the multi-camera coordinate calibration method comprises the steps that first camera shooting equipment rotates along a second dimension by taking a target rotation position corresponding to a first dimension as a reference; in the process that the first camera equipment rotates along the second dimension, the second camera equipment determines a first track corresponding to the target light source based on at least one currently shot first target picture, and controls the first camera equipment to rotate along the first dimension based on the first track; in the process that the first camera equipment rotates along the first dimension based on the first track, the second camera equipment determines a second track corresponding to the target light source based on at least one currently shot second target picture; and the second camera device performs coordinate calibration based on the first track and the second track. According to the invention, the accuracy of coordinate calibration based on the first track and the second track is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of camera technology, and in particular to a multi-camera coordinate calibration method, multi-camera and electronic equipment. Background Art

[0002] In the use scenario of multiple cameras, fixed cameras such as wide-angle cameras and non-fixed cameras such as ball cameras need to be linked. Users can view the live broadcast of the wide-angle camera, that is, the gun camera, on terminal devices such as mobile phones. Click a target on the screen shot by the wide-angle camera, and the ball camera can immediately rotate to the target shown on the wide-angle camera for a closer view. In order to achieve this effect, the relative position of the wide-angle camera and the ball camera, as well as the rotation angle of the ball camera, need to be confirmed. However, due to physical installation reasons or different camera resolutions, there is often a large error between the position of the picture displayed by the wide-angle camera and the position to which the ball camera can actually rotate accurately. Therefore, the relative coordinates of the wide-angle camera and the ball camera need to be calibrated so that the wide-angle camera can know the relative position of the ball camera and itself. Summary of the invention

[0003] In view of the problems existing in the prior art, an embodiment of the present invention provides a multi-camera coordinate calibration method, a multi-camera and an electronic device.

[0004] The present invention provides a coordinate calibration method for multiple cameras, wherein the multiple cameras include a first camera device and at least one second camera device, and the method includes:

[0005] The first camera device rotates along the second dimension based on the target rotation position corresponding to the first dimension; the target rotation position is a center point position determined based on the starting position and the end position on the first dimension, or a position that differs from the angle corresponding to the center point position by a preset angle; the direction indicated by the first dimension and the direction indicated by the second dimension are perpendicular to each other;

[0006] During the rotation of the first camera device along the second dimension, the second camera device determines a first trajectory corresponding to a target light source of the first camera device based on at least one first target picture currently being captured, and controls the first camera device to rotate along the first dimension based on the first trajectory; the color of the target light source is a target color; the target color is a color whose color difference with the scene picture currently being captured by the second camera device is greater than a preset value;

[0007] In a process in which the first camera device rotates along the first dimension based on the first trajectory, the second camera device determines a second trajectory corresponding to the target light source based on at least one second target picture currently captured;

[0008] The second camera device performs coordinate calibration based on the first trajectory and the second trajectory.

[0009] According to a coordinate calibration method for multiple cameras provided by the present invention, the step of controlling the first camera device to rotate along the first dimension based on the first trajectory includes:

[0010] The second camera device controls the first camera device to rotate along the first dimension based on a first center point position on the first trajectory.

[0011] According to a multi-camera coordinate calibration method provided by the present invention, the method further includes:

[0012] The first camera device rotates along a first direction of a first dimension to a first maximum angle, and rotates along a second direction from the first maximum angle to a second maximum angle; the first direction and the second direction are opposite directions;

[0013] The position corresponding to the first maximum angle is determined as the starting position, and the position corresponding to the second maximum angle is determined as the ending position.

[0014] According to a coordinate calibration method for multiple cameras provided by the present invention, the second camera device performs coordinate calibration based on the first trajectory and the second trajectory, including:

[0015] The second camera device obtains a first angle corresponding to a first moment, a second angle corresponding to a second moment, a third angle corresponding to a third moment, and a fourth angle corresponding to a fourth moment of the first camera device; the first moment is a time corresponding to a first starting trajectory point of the first trajectory, and the second moment is a time corresponding to a first ending trajectory point of the first trajectory; the third moment is a time corresponding to a second starting trajectory point of the second trajectory, and the fourth moment is a time corresponding to a second ending trajectory point of the second trajectory;

[0016] The second camera device performs coordinate calibration in the first dimension and the second dimension based on the first angle, the second angle, the third angle, the fourth angle, the length of the first track, the length of the second track, and the second center point position of the second track;

[0017] or,

[0018] The second camera device performs coordinate calibration in the first dimension and the second dimension based on the first angle, the second angle, the third angle, the fourth angle, the length of the first trajectory, the length of the second trajectory, and the first center point position of the first trajectory.

[0019] According to a coordinate calibration method for multiple cameras provided by the present invention, the second camera device performs coordinate calibration based on the first trajectory and the second trajectory, including:

[0020] The second camera device obtains a first angle corresponding to the first camera device at a first moment and a second angle corresponding to the second moment, and performs coordinate calibration in a second dimension based on the first angle, the second angle and the first trajectory; the first moment is a time corresponding to a first starting trajectory point of the first trajectory, and the second moment is a time corresponding to a first ending trajectory point of the first trajectory;

[0021] The second camera device obtains a third angle corresponding to the first camera device at a third moment and a fourth angle corresponding to the first moment, and performs coordinate calibration in the first dimension based on the third angle, the fourth angle and the second trajectory; the third moment is the time corresponding to the second starting trajectory point of the second trajectory, and the fourth moment is the time corresponding to the second ending trajectory point of the second trajectory.

[0022] According to a coordinate calibration method for multiple cameras provided by the present invention, the first camera device rotates along a second dimension based on a target rotation position corresponding to a first dimension, comprising:

[0023] The first camera device rotates along a third direction to a third maximum angle in the second dimension based on the target rotation position, and rotates along a fourth direction from the third maximum angle; the third direction and the fourth direction are opposite directions.

[0024] The present invention also provides a multi-camera, the multi-camera comprising a first camera device and at least one second camera device;

[0025] The first camera device is used to rotate along a second dimension based on a target rotation position corresponding to the first dimension; the target rotation position is a center point position determined based on a starting position and an end position in the first dimension, or a position that differs from an angle corresponding to the center point position by a preset angle; the direction indicated by the first dimension and the direction indicated by the second dimension are perpendicular to each other;

[0026] The second camera device is used to determine a first trajectory corresponding to a target light source of the first camera device based on at least one first target picture currently being captured, and control the first camera device to rotate along the first dimension based on the first trajectory during the rotation of the first camera device along the second dimension; the color of the target light source is a target color; the target color is a color whose color difference with the scene picture currently being captured by the second camera device is greater than a preset value;

[0027] The second camera device is also used to determine the second trajectory corresponding to the target light source based on at least one second target picture currently captured during the process of the first camera device rotating along the first dimension based on the first trajectory, and to perform coordinate calibration based on the first trajectory and the second trajectory.

[0028] 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.

[0029] 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.

[0030] 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.

[0031] The coordinate calibration method, multi-camera and electronic device provided by the present invention, during the process of the first camera device rotating along the second dimension with the target rotation position corresponding to the first dimension as a reference, the second camera device determines the first trajectory corresponding to the target light source turned on during the rotation of the first camera device based on at least one first target picture currently being taken, and the color of the target light source is a color with a color difference greater than a preset value from the scene picture currently being taken by the second camera device, the first camera device is controlled to rotate along the first dimension based on the first trajectory, and during the process of the first camera device rotating along the first dimension, the second camera device determines the second trajectory corresponding to the target light source based on at least one second target picture currently being taken, and finally coordinate calibration is performed based on the first trajectory and the second trajectory. It can be seen that the present invention uses the light source of the target color turned on by the first camera device as a reference. During the rotation of the first camera device in two dimensions, the second camera device observes the trajectory of the light source in the picture, and then realizes automatic calibration of coordinates based on the trajectory of the light source in two dimensions. Since the color of the light source turned on by the first camera device is a color whose color difference with the scene picture currently shot by the second camera device is greater than a preset value, it is easier for the second camera device to identify the light source of the first camera device in the shot picture, thereby improving the accuracy of determining the first trajectory and the second trajectory, and then improving the accuracy of coordinate calibration based on the first trajectory and the second trajectory. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] 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.

[0033] Figure 1 It is a schematic diagram of coordinate calibration of multiple cameras in the related art;

[0034] Figure 2 This is one of the flow charts of the coordinate calibration method for multiple cameras provided by an embodiment of the present invention;

[0035] Figure 3 This is a second flow chart of the coordinate calibration method for multiple cameras provided in an embodiment of the present invention;

[0036] Figure 4 is one of the schematic diagrams of the first trajectory and the second trajectory in the image provided by the embodiment of the present invention;

[0037] Figure 5 is a second schematic diagram of a first track and a second track in an image provided by an embodiment of the present invention;

[0038] Figure 6 is a third schematic diagram of a first track and a second track in an image provided by an embodiment of the present invention;

[0039] Figure 7 is a schematic diagram of the structure of multiple cameras provided by an embodiment of the present invention;

[0040] Figure 8 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0041] 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.

[0042] In related technologies, such as Figure 1 As shown, two areas on the edge are usually manually marked on the picture taken by the wide-angle camera. For example, Figure 1Area 10 and area 20 in the image are marked, and the image corresponding to the marked area 10 and the image corresponding to area 20 are sent to the ball camera. The ball camera recognizes the image and moves the center position of the lens to make the center position coincide with the center of the images corresponding to the two areas, respectively, and then completes the coordinate calibration based on the center position of the ball camera and the positions of the images corresponding to the two areas in the picture taken by the wide-angle camera.

[0043] However, in the above-mentioned related technologies, if the picture taken by the wide-angle camera is a relatively single picture such as the ocean, blue sky, white wall, etc., since the color information in the single picture is relatively similar, the ball camera cannot accurately identify the image corresponding to the area sent by the wide-angle camera, that is, the recognition rate of the image corresponding to the area is reduced, and the accuracy of coordinate calibration is further reduced.

[0044] Combine the following Figure 2 and Figure 3 The coordinate calibration method of multiple cameras of the present invention is described.

[0045] Figure 2 This is one of the flow charts of the coordinate calibration method of multiple cameras provided in an embodiment of the present invention, wherein the multiple cameras include a first camera device and at least one second camera device, wherein the monitoring range of the second camera device is relatively large, for example, the second camera device may be a wide-angle camera or other camera capable of monitoring a certain range, and the first camera device may be a high-resolution camera device for fixed-point monitoring of a designated target, for example, the first camera device may be a ball camera, or a conventional camera capable of rotating in horizontal and vertical directions with the aid of a bracket; in actual use, the user may view the image content captured by the second camera device on the terminal device, and send the target points that need to be paid attention to in the image content to the first camera device, and the first camera device may track and shoot the target points. Figure 2 As shown, the coordinate calibration method of the multi-camera includes the following steps:

[0046] Step 201, the first camera device rotates along the second dimension based on the target rotation position corresponding to the first dimension; the target rotation position is a center point position determined based on a first starting position and a first end position on the first dimension, or a position that differs from the angle corresponding to the center point position by a preset angle; the direction indicated by the first dimension and the direction indicated by the second dimension are perpendicular to each other.

[0047] The first dimension can be a direction at any angle, and the second dimension can also be a direction at any angle, but the direction indicated by the first dimension is perpendicular to the direction indicated by the second dimension; for example, when the first dimension is a horizontal dimension, the second dimension is a vertical dimension; when the first dimension is a vertical dimension, the second dimension is a horizontal dimension; the horizontal dimension refers to the pan-tilt head rotating in the horizontal direction, and the vertical dimension refers to the pan-tilt head rotating in the vertical direction. The following descriptions all take the first dimension as the horizontal dimension and the second dimension as the vertical dimension as an example.

[0048] For example, before coordinate calibration, the second camera device determines the colors included in each image based on the spectrum of at least one image of the current scene captured, and selects a color whose color difference with the color included in each image is greater than a preset value as the target color, and sends the target color to the first camera device; the first camera device turns on the target light source based on the target color, that is, the color of the target light source is the target color, and the first camera device uses the target rotation position in the horizontal dimension as a reference, that is, when the target rotation position in the horizontal dimension remains unchanged, controls the gimbal corresponding to the first camera device to rotate along the vertical dimension. Since the target rotation position is the center point position of the first camera device in the horizontal dimension or a position close to the center point position, when the first camera device rotates along the vertical dimension based on the target rotation position in the horizontal dimension, the second camera device can capture the target light source turned on by the first camera device, that is, the purpose of the first camera device rotating along the vertical dimension based on the target rotation position is to enable the second camera device to capture the target light source turned on by the first camera device.

[0049] Step 202. During the rotation of the first camera device along the second dimension, the second camera device determines a first trajectory corresponding to a target light source of the first camera device based on at least one first target image currently being captured, and controls the first camera device to rotate along the first dimension based on the first trajectory; the color of the target light source is a target color; and the target color is a color whose color difference with the scene image currently being captured by the second camera device is greater than a preset value.

[0050] For example, while the first camera device is rotating along the vertical dimension based on the target rotation position in the horizontal dimension, the second camera device is continuously shooting, so that at least one first target picture currently being shot can be acquired, the position of the target light source of the target color in each first target picture is determined, and the position of the target light source of the target color in each first target picture is combined in chronological order to obtain a first trajectory and a first acquisition moment of the first starting trajectory point and a second acquisition moment of the first ending trajectory point in the first trajectory, and each trajectory point corresponds to a target light source at a moment. Since the first camera device is rotating in the vertical dimension, the first trajectory of the target light source determined based on at least one first target picture is a longitudinal trajectory, and the position of the center point on the first trajectory or the position of the trajectory point close to the center point is sent to the first camera device, so that the first camera device is rotated along the horizontal dimension based on the position of the center point of the first trajectory or the position of the trajectory point close to the center point.

[0051] It should be noted that the position of the target light source of the target color in the first target image may be the center position of the target light source or the edge position of the target light source, and the present invention is not limited thereto.

[0052] Step 203: While the first camera device is rotating along the first dimension based on the first trajectory, the second camera device determines a second trajectory corresponding to the target light source based on at least one second target picture currently being captured.

[0053] For example, during the process of the first camera device rotating along the horizontal dimension based on the first trajectory, the second camera device keeps shooting, so that at least one second target picture currently shot can be obtained, the position of the target light source of the target color in each second target picture is determined, and the position of the target light source of the target color in each second target picture is combined in time order to obtain the second trajectory and the third acquisition moment of the second starting trajectory point and the fourth acquisition moment of the second ending trajectory point in the second trajectory, and each trajectory point corresponds to a target light source at a moment. Since the first camera device rotates in the horizontal dimension, the second trajectory of the target light source determined based on at least one second target picture is a horizontal trajectory.

[0054] It should be noted that the position of the target light source of the target color in the second target image may be the center position of the target light source or the edge position of the target light source, and the present invention is not limited thereto.

[0055] Step 204: The second camera device performs coordinate calibration based on the first trajectory and the second trajectory.

[0056] For example, when the first trajectory corresponding to the target light source during the vertical rotation of the first camera device, the first acquisition moment of the first starting trajectory point in the first trajectory, the second acquisition moment of the first ending trajectory point, the second trajectory corresponding to the target light source during the horizontal rotation of the first camera device, the third acquisition moment of the second starting trajectory point in the second trajectory, and the fourth acquisition moment of the second ending trajectory point are obtained, the second camera device can send the first acquisition moment, the second acquisition moment, the third acquisition moment, and the fourth acquisition moment to the first camera device. Since the first camera device records the rotation moment corresponding to each rotation angle during the rotation process, the first camera device can obtain the first rotation moment that is the same as the first acquisition moment, and the second rotation moment that is the same as the second acquisition moment. The same second rotation moment, the same third rotation moment as the third acquisition moment, and the fourth rotation moment corresponding to the fourth acquisition moment, and the rotation angle corresponding to the first rotation moment, the rotation angle corresponding to the second rotation moment, the rotation angle corresponding to the third rotation moment, and the rotation angle corresponding to the fourth rotation moment are sent to the second camera device, so that the second camera device can complete the calibration of the relative coordinates of the second camera device and the first camera device based on the difference between the rotation angle corresponding to the first rotation moment and the rotation angle corresponding to the second rotation moment, and the difference between the rotation angle corresponding to the third rotation moment and the rotation angle corresponding to the fourth rotation moment, thereby realizing the calibration of the relative positions of the second camera device and the first camera device in the horizontal and vertical dimensions.

[0057] It should be noted that the above description is based on the first dimension being the horizontal dimension and the second dimension being the vertical dimension as an example. The target rotation position is a position in the horizontal dimension, which is based on a scenario in which the horizontal rotation range of the first camera device in multiple cameras is larger than the vertical rotation range. The purpose is to ensure that the determined target rotation position is a position in which the second camera device can capture the target light source turned on by the first camera device. In a scenario in which the horizontal rotation range and the vertical rotation range of the first camera device in multiple cameras are both relatively large, the target rotation position may also be a position in the vertical dimension. When the target rotation position is a position in the vertical dimension, the first camera device rotates along the horizontal dimension based on the target rotation position corresponding to the vertical dimension. During the rotation of the first camera device along the horizontal dimension, the second camera device determines a third trajectory corresponding to the target light source based on at least one third target picture currently being captured, and controls the first camera device to rotate along the vertical dimension based on the third trajectory. During the rotation of the first camera device along the vertical dimension based on the third trajectory, the second camera device determines a fourth trajectory corresponding to the target light source based on at least one fourth target picture currently being captured, and finally coordinates are calibrated based on the third trajectory and the fourth trajectory. The present invention is not limited to this.

[0058] It should be noted that the present invention can be applied to the coordinate calibration of scenes in which the picture taken by the second camera device is a relatively single picture such as the ocean, blue sky, white wall, etc., and can also be applied to the coordinate calibration of other non-single-picture scenes taken by the second camera device, without limitation.

[0059] The coordinate calibration method of multiple cameras provided by the present invention is as follows: during the process of the first camera device rotating along the second dimension with the target rotation position corresponding to the first dimension as a reference, the second camera device determines the first trajectory corresponding to the target light source turned on during the rotation of the first camera device based on at least one first target picture currently being taken, and the color of the target light source is a color whose color difference with the scene picture currently being taken by the second camera device is greater than a preset value. The first camera device is controlled to rotate along the first dimension based on the first trajectory, and during the process of the first camera device rotating along the first dimension, the second camera device determines the second trajectory corresponding to the target light source based on at least one second target picture currently being taken, and finally coordinate calibration is performed based on the first trajectory and the second trajectory. It can be seen that the present invention uses the light source of the target color turned on by the first camera device as a reference. During the rotation of the first camera device in two dimensions, the second camera device observes the trajectory of the light source in the picture, and then realizes automatic calibration of coordinates based on the trajectory of the light source in two dimensions. Since the color of the light source turned on by the first camera device is a color whose color difference with the scene picture currently shot by the second camera device is greater than a preset value, it is easier for the second camera device to identify the light source of the first camera device in the shot picture, thereby improving the accuracy of determining the first trajectory and the second trajectory, and then improving the accuracy of coordinate calibration based on the first trajectory and the second trajectory. In addition, the present invention does not require the user to manually mark the area on the edge of the picture shot by the second camera device, and can realize automatic calibration of coordinates, thereby improving the efficiency of coordinate calibration.

[0060] In one embodiment, in step 202, controlling the first camera device to rotate along the first dimension based on the first trajectory may be specifically implemented in the following manner:

[0061] The second camera device controls the first camera device to rotate along the first dimension based on a first center point position on the first trajectory.

[0062] For example, the second camera device determines the first target picture where the target light source appears for the first time and the first target picture where the target light source appears for the last time in at least one first target picture captured, and determines the first entry position S0y1 of the target light source of the target color in the first target picture where the target light source appears for the first time, and determines the first exit position S0y2 of the target light source of the target color in the first target picture where the target light source appears for the last time. Since the first camera device rotates in the vertical dimension, the first trajectory of the target light source determined based on at least one first target picture is a longitudinal trajectory, the first entry position S0y1 is the starting position of the longitudinal trajectory, corresponding to the position of the first starting trajectory point described below, the first exit position S0y2 is the end position of the longitudinal trajectory, corresponding to the position of the first ending trajectory point described below, the first center point position on the first trajectory can be determined based on the first entry position S0y1 and the first exit position S0y2, that is, the first center point position S0y0=(S0y2-S0y1) / 2, and the second camera device sends the first center point position S0y0 on the first trajectory to the first camera device, so that the first camera device rotates in the horizontal direction based on the first center point position S0y0.

[0063] It should be noted that the second camera device can also control the first camera device to rotate along the first dimension based on a position at a first preset distance from the first center point on the first trajectory. The first preset distance can be set based on demand, and the present invention is not limited to this.

[0064] In the coordinate calibration method for multiple cameras provided by an embodiment of the present invention, the second camera device controls the first camera device to rotate along the first dimension based on the first center point position on the first trajectory, thereby ensuring that the second camera device can capture the target light source turned on by the first camera device during the rotation of the first dimension, thereby achieving coordinate calibration based on the trajectory of the target light source.

[0065] In one embodiment, Figure 3 FIG. 2 is a flow chart of a method for calibrating coordinates of multiple cameras provided in an embodiment of the present invention. Figure 3 As shown, before step 201, the coordinate calibration method of multiple cameras further includes the following steps:

[0066] Step 205: The first camera device rotates along a first direction of a first dimension to a first maximum angle, and rotates along a second direction from the first maximum angle to a second maximum angle; the first direction and the second direction are opposite directions.

[0067] When the first direction is counterclockwise, the second direction is clockwise; when the first direction is clockwise, the second direction is counterclockwise.

[0068] For example, taking the first direction as the counterclockwise direction and the second direction as the clockwise direction, the first camera device turns on the target light source, which may be the light source of an indicator light or a laser light source, etc. After the first camera device turns on the target light source, the first camera device first rotates counterclockwise in the horizontal dimension from an initial position until it cannot rotate anymore, and the corresponding angle is the first maximum angle. The first camera device then rotates clockwise until it cannot rotate anymore, and the corresponding angle is the second maximum angle.

[0069] Step 206: determine the position corresponding to the first maximum angle as the starting position, and determine the position corresponding to the second maximum angle as the end position.

[0070] For example, when the first camera device obtains the position S0x1 corresponding to the first maximum angle and the position S0x2 corresponding to the second maximum angle, the position S0x1 can be determined as the starting position in the first dimension, and the position S0x2 can be determined as the end position in the first dimension. The target rotation position in the horizontal dimension can be determined based on the position S0x1 and the position S0x2. Preferably, the target rotation position is the center point position in the horizontal dimension, that is, the target rotation position S0x=(S0x2-S0x1) / 2. In addition, the above-mentioned first camera device rotates in the horizontal direction based on the first center point position S0y0 specifically means that the first camera device takes the first center point position S0y0 as a reference, and starts to rotate from the first center point position S0y0 to the position corresponding to the first maximum angle, until it rotates to the position corresponding to the first maximum angle, and then starts to rotate from the position corresponding to the first maximum angle to the position corresponding to the second maximum angle, or starts to rotate from the first center point position S0y0 to the position corresponding to the second maximum angle, until it rotates to the position corresponding to the second maximum angle, and then starts to rotate from the position corresponding to the second maximum angle to the position corresponding to the first maximum angle.

[0071] It should be noted that the target rotation position can also be a position that differs from the angle corresponding to the center point position by a preset angle, as long as it is close to the center point position. The specific value of the preset angle can be set based on demand, and the present invention is not limited to this.

[0072] It should be noted that in a scenario where the horizontal rotation range and vertical rotation range of the first camera device in a multi-camera are relatively large, the method for determining the target rotation position can be as follows: the first camera device rotates along the third direction of the second dimension to a third maximum angle, and rotates from the third maximum angle along the fourth direction to the fourth maximum angle, and the target rotation position is determined based on the position corresponding to the third maximum angle and the position corresponding to the fourth maximum angle.

[0073] In the coordinate calibration method for multiple cameras provided by an embodiment of the present invention, the first camera device determines the target rotation position based on the position corresponding to the first maximum angle of the first dimension and the position corresponding to the second maximum angle, so as to ensure that during the process of the first camera device rotating in the second dimension based on the determined target rotation position, the second camera device can capture the target light source turned on by the first camera device.

[0074] In one embodiment, the second camera device performs coordinate calibration based on the first trajectory and the second trajectory, which can be specifically implemented in the following manner:

[0075] The second camera device obtains a first angle corresponding to the first camera device at a first moment, a second angle corresponding to the second moment, a third angle corresponding to the third moment, and a fourth angle corresponding to the fourth moment; the first moment is the time corresponding to the first starting trajectory point of the first trajectory, and the second moment is the time corresponding to the first ending trajectory point of the first trajectory; the third moment is the time corresponding to the second starting trajectory point of the second trajectory, and the fourth moment is the time corresponding to the second ending trajectory point of the second trajectory.

[0076] In the first way, the second camera device calibrates the coordinates in the first dimension and the second dimension based on the first angle, the second angle, the third angle, the fourth angle, the length of the first trajectory, the length of the second trajectory, and the second center point position of the second trajectory.

[0077] For example, when the second camera device obtains the first trajectory, the second trajectory, the first moment corresponding to the first starting trajectory point in the first trajectory, the second moment corresponding to the first ending trajectory point in the first trajectory, the third moment corresponding to the second starting trajectory point in the second trajectory, and the fourth moment corresponding to the second ending trajectory point in the second trajectory, the first moment, the second moment, the third moment, and the fourth moment are all sent to the first camera device. Since the first camera device records the moment corresponding to each rotation angle, the first angle corresponding to the first moment, the second angle corresponding to the second moment, the third angle corresponding to the third moment, and the fourth angle corresponding to the fourth moment can be obtained, and a first ratio of the difference between the first angle and the second angle to the length of the first trajectory is determined, and a second ratio of the difference between the third angle and the fourth angle to the length of the second trajectory is determined. Based on the first ratio, the second ratio, and the second center point position of the second trajectory, coordinate calibration is performed in the horizontal and vertical dimensions; Figure 4 is one of the schematic diagrams of the first trajectory and the second trajectory in the image provided by the embodiment of the present invention, such as Figure 4As shown, point A represents the first starting track point of the first track 401, point B represents the first ending track point of the first track 401, point C represents the second starting track point of the second track 402, point D represents the second ending track point of the second track 402, and point E represents the second center point position of the second track 402. Assuming that the target that the user needs to track is point F, the horizontal pixel point distance from point F to point E is determined, then the second ratio is multiplied by the horizontal pixel point distance from point F to point E, and the angle of rotation of the second camera device in the horizontal dimension when tracking the target corresponding to point F can be obtained based on the current vertical position of the first camera device; and the first ratio is multiplied by the vertical pixel point distance from point F to point A, and the angle of rotation of the second camera device in the vertical dimension when tracking the target corresponding to point F can be obtained based on the horizontal position corresponding to the current vertical position of the first camera device.

[0078] In the second method, the second camera device calibrates the coordinates in the first dimension and the second dimension based on the first angle, the second angle, the third angle, the fourth angle, the length of the first trajectory, the length of the second trajectory, and the first center point position of the first trajectory.

[0079] For example, when the second camera device obtains a first angle corresponding to a first moment, a second angle corresponding to a second moment, a third angle corresponding to a third moment, and a fourth angle corresponding to a fourth moment, it determines a first ratio of a difference between the first angle and the second angle to the length of the first track, and determines a second ratio of a difference between the third angle and the fourth angle to the length of the second track, and performs coordinate calibration in the horizontal dimension and the vertical dimension based on the first ratio, the second ratio, and the position of the first center point of the first track; Figure 5 is a second schematic diagram of the first track and the second track in the image provided by the embodiment of the present invention, such as Figure 5 As shown, point A represents the first starting track point of the first track 401, point B represents the first ending track point of the first track 401, point C represents the second starting track point of the second track 402, point D represents the second ending track point of the second track 402, and point G represents the second center point position of the first track 401. Assuming that the target that the user needs to track is point F, the horizontal pixel point distance from point F to point G is determined, then the first ratio is multiplied by the horizontal pixel point distance from point F to point G, and the angle of rotation of the second camera device in the vertical dimension when tracking the target corresponding to point F can be obtained based on the current horizontal position of the first camera device; and the second ratio is multiplied by the horizontal pixel point distance from point F to point C, and the angle of rotation of the second camera device in the horizontal dimension when tracking the target corresponding to point F can be obtained based on the vertical position corresponding to the current horizontal position of the first camera device.

[0080] It should be noted that the second center point position G can be determined in the following manner: the second camera device determines the second target screen where the target light source appears for the first time and the second target screen where the target light source appears for the last time in at least one second target screen captured, and determines the second entry position S0x3 of the target light source, that is, the position of the second starting trajectory point, in the second target screen where the target light source appears for the first time, and determines the second exit position S0x4 of the target light source, that is, the position of the second ending trajectory point, in the second target screen where the target light source appears for the last time. Since the first camera device rotates in the horizontal dimension, the second trajectory of the target light source determined based on at least one second target screen is a horizontal trajectory, the second entry position S0x3 is the starting position of the horizontal trajectory, and the second exit position S0x4 is the end position of the horizontal trajectory. Based on the second entry position S0x3 and the second exit position S0x4, the second center point position on the second trajectory can be determined, that is, the second center point position S0x0 = (S0x4-S0x3) / 2.

[0081] It should be noted that the length of the first track and the length of the second track can be expressed by the number of pixels.

[0082] In the coordinate calibration method for multiple cameras provided by an embodiment of the present invention, the second camera device performs coordinate calibration based on the first starting trajectory point of the first trajectory, the first ending trajectory point of the first trajectory, and the second center point position of the second trajectory, or performs coordinate calibration based on the second starting trajectory point of the second trajectory, the second ending trajectory point of the second trajectory, and the first center point position of the first trajectory. The calibration method is simple; and because the color of the light source turned on by the first camera device is a color whose color difference with the scene picture currently shot by the second camera device is greater than a preset value, the second camera device can more easily identify the light source of the first camera device in the shot picture, thereby improving the accuracy of determining the first trajectory and the second trajectory, and thereby improving the accuracy of the coordinate calibration.

[0083] In one embodiment, the second camera device performs coordinate calibration based on the first trajectory and the second trajectory, which can be specifically implemented in the following manner:

[0084] The second camera device obtains a first angle corresponding to the first camera device at a first moment and a second angle corresponding to the second moment, and performs coordinate calibration in a second dimension based on the first angle, the second angle and the first trajectory; the first moment is a time corresponding to a first starting trajectory point of the first trajectory, and the second moment is a time corresponding to a first ending trajectory point of the first trajectory;

[0085] The second camera device obtains a third angle corresponding to the first camera device at a third moment and a fourth angle corresponding to the first moment, and performs coordinate calibration in the first dimension based on the third angle, the fourth angle and the second trajectory; the third moment is the time corresponding to the second starting trajectory point of the second trajectory, and the fourth moment is the time corresponding to the second ending trajectory point of the second trajectory.

[0086] For example, when the second camera device obtains the first trajectory, the second trajectory, the first moment corresponding to the first starting trajectory point in the first trajectory, the second moment corresponding to the first ending trajectory point in the first trajectory, the third moment corresponding to the second starting trajectory point in the second trajectory, and the fourth moment corresponding to the second ending trajectory point in the second trajectory, the first moment, the second moment, the third moment, and the fourth moment are all sent to the first camera device. Since the first camera device records the moment corresponding to each rotation angle, the first angle corresponding to the first moment, the second angle corresponding to the second moment, the third angle corresponding to the third moment, and the fourth angle corresponding to the fourth moment can be obtained, and a first ratio of the difference between the first angle and the second angle to the length of the first trajectory is determined, and a second ratio of the difference between the third angle and the fourth angle to the length of the second trajectory is determined, and the coordinate calibration in the vertical dimension is performed based on the first ratio; Figure 6 3 is a schematic diagram of the first track and the second track in the image provided by the embodiment of the present invention. Figure 6 As shown, point A represents the first starting track point of the first track 401, point B represents the first ending track point of the first track 401, point C represents the second starting track point of the second track 402, and the length of AB is the length of the first track 401. Assuming that the target that the user needs to track is point F, the vertical pixel point distance from point F to point A is determined, then the first ratio is multiplied by the vertical pixel point distance from point F to point A, and the angle of rotation of the second camera device in the vertical dimension when tracking the target corresponding to point F can be obtained based on the current horizontal position of the first camera device.

[0087] The coordinates in the horizontal dimension are calibrated based on the second ratio; Figure 6 As shown, the length of CD is the length of the second track 402. Assuming that the target that the user needs to track is point F, the horizontal pixel distance from point F to point C is determined, and the first ratio is multiplied by the horizontal pixel distance from point F to point C. The angle of rotation of the second camera device in the horizontal dimension when tracking the target corresponding to point F can be obtained based on the vertical position corresponding to the current horizontal position of the first camera device.

[0088] In the coordinate calibration method for multiple cameras provided by an embodiment of the present invention, the second camera device performs coordinate calibration in the vertical dimension based on the first starting trajectory point and the first ending trajectory point of the first trajectory, and performs coordinate calibration in the horizontal dimension based on the second starting trajectory point and the second ending trajectory point of the second trajectory. Since the accuracy of the first trajectory and the second trajectory is relatively high, the accuracy of the coordinate calibration based on the first trajectory and the second trajectory is improved.

[0089] In one embodiment, the first camera device rotates along the second dimension based on the target rotation position of the first dimension, which can be specifically achieved in the following manner:

[0090] The first camera device rotates along a third direction to a third maximum angle in the second dimension based on the target rotation position, and rotates along a fourth direction from the third maximum angle; the third direction and the fourth direction are opposite directions.

[0091] When the third direction is counterclockwise, the fourth direction is clockwise; when the third direction is clockwise, the fourth direction is counterclockwise.

[0092] For example, taking the third direction as counterclockwise and the fourth direction as clockwise, when determining the target rotation position in the horizontal dimension, the first camera device takes the target rotation position in the horizontal dimension as a reference, and first rotates counterclockwise in the vertical dimension until it can no longer rotate. At this time, the corresponding angle is the third maximum angle, and then it rotates clockwise.

[0093] In the coordinate calibration method for multiple cameras provided by an embodiment of the present invention, the first camera device takes the target rotation position as a reference, rotates along the third direction in the second dimension to a third maximum angle, and rotates along the fourth direction from the third maximum angle, so that the first camera device can cover a larger angle range when rotating in the second dimension. In this way, it can be ensured that the second camera device can capture the target light source turned on by the first camera device, thereby increasing the length of the first trajectory determined by the second camera device. The longer the first trajectory is, the more accurate the coordinate calibration based on the first trajectory is.

[0094] The coordinate calibration device for multiple cameras provided by the present invention is described below. The coordinate calibration device for multiple cameras described below and the coordinate calibration method for multiple cameras described above can be referred to each other.

[0095] Figure 7 is a schematic diagram of the structure of multiple cameras provided by an embodiment of the present invention, such as Figure 7 As shown, the multi-camera 700 includes a first camera device 701 and at least one second camera device 702;

[0096] The first camera device 701 is used to rotate along the second dimension based on the target rotation position of the first dimension; the target rotation position is a center point position determined based on the starting position and the end position in the first dimension, or a position that differs from the angle corresponding to the center point position by a preset angle; the direction indicated by the first dimension and the direction indicated by the second dimension are perpendicular to each other;

[0097] The second camera device 702 is used to determine a first trajectory corresponding to a target light source of the first camera device based on at least one first target picture currently captured during the rotation of the first camera device 701 along the second dimension, and control the first camera device 701 to rotate along the first dimension based on the first trajectory; the color of the target light source is a target color; the target color is a color whose color difference with the scene picture currently captured by the second camera device is greater than a preset value;

[0098] The second camera device 702 is also used to determine the second trajectory corresponding to the target light source based on at least one second target picture currently captured during the process of the first camera device 701 rotating along the first dimension based on the first trajectory, and to perform coordinate calibration based on the first trajectory and the second trajectory.

[0099] The multi-camera provided by the present invention, when the first camera device rotates along the second dimension with the target rotation position corresponding to the first dimension as a reference, the second camera device determines the first trajectory corresponding to the target light source turned on during the rotation of the first camera device based on at least one first target picture currently being taken, and the color of the target light source is a color whose color difference with the scene picture currently being taken by the second camera device is greater than a preset value. The first camera device is controlled to rotate along the first dimension based on the first trajectory, and when the first camera device rotates along the first dimension, the second camera device determines the second trajectory corresponding to the target light source based on at least one second target picture currently being taken, and finally coordinates are calibrated based on the first trajectory and the second trajectory. It can be seen that the present invention uses the light source of the target color turned on by the first camera device as a reference. During the rotation of the first camera device in two dimensions, the second camera device observes the trajectory of the light source in the picture, and then realizes automatic calibration of coordinates based on the trajectory of the light source in two dimensions. Since the color of the light source turned on by the first camera device is a color whose color difference with the scene picture currently shot by the second camera device is greater than a preset value, it is easier for the second camera device to identify the light source of the first camera device in the shot picture, thereby improving the accuracy of determining the first trajectory and the second trajectory, and then improving the accuracy of coordinate calibration based on the first trajectory and the second trajectory.

[0100] Based on any of the above embodiments, the second camera device 702 is specifically used to control the first camera device 701 to rotate along the first dimension based on the first center point position on the first trajectory.

[0101] Based on any of the above embodiments, the first camera device 701 is further used to rotate along a first direction of a first dimension to a first maximum angle, and rotate along a second direction from the first maximum angle to a second maximum angle; the first direction and the second direction are opposite directions;

[0102] The position corresponding to the first maximum angle is determined as the starting position, and the position corresponding to the second maximum angle is determined as the end point.

[0103] Based on any of the above embodiments, the second camera device 702 is specifically used for:

[0104] Acquire a first angle corresponding to a first moment, a second angle corresponding to a second moment, a third angle corresponding to a third moment, and a fourth angle corresponding to a fourth moment of the first camera device; the first moment is a time corresponding to a first starting trajectory point of the first trajectory, and the second moment is a time corresponding to a first ending trajectory point of the first trajectory; the third moment is a time corresponding to a second starting trajectory point of the second trajectory, and the fourth moment is a time corresponding to a second ending trajectory point of the second trajectory;

[0105] Performing coordinate calibration in the first dimension and the second dimension based on the first angle, the second angle, the third angle, the fourth angle, the length of the first track, the length of the second track, and the second center point position of the second track;

[0106] or,

[0107] Coordinate calibration in the first dimension and the second dimension is performed based on the first angle, the second angle, the third angle, the fourth angle, the length of the first trajectory, the length of the second trajectory, and the first center point position of the first trajectory.

[0108] Based on any of the above embodiments, the second camera device 702 is further specifically used for:

[0109] Acquire a first angle corresponding to the first moment and a second angle corresponding to the second moment of the first camera device, and perform coordinate calibration in a second dimension based on the first angle, the second angle and the first trajectory; the first moment is a time corresponding to a first starting trajectory point of the first trajectory, and the second moment is a time corresponding to a first ending trajectory point of the first trajectory;

[0110] Obtain a third angle corresponding to the first camera device at a third moment and a fourth angle corresponding to the first moment, and perform coordinate calibration in the first dimension based on the third angle, the fourth angle and the second trajectory; the third moment is the time corresponding to the second starting trajectory point of the second trajectory, and the fourth moment is the time corresponding to the second ending trajectory point of the second trajectory.

[0111] Based on any of the above embodiments, the first camera device 701 is specifically used for:

[0112] Based on the target rotation position, the device is rotated along the third direction in the second dimension to a third maximum angle, and then rotated along the fourth direction from the third maximum angle; the third direction and the fourth direction are opposite directions.

[0113] Figure 8 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention, such as Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the coordinate calibration method of multiple cameras, wherein the multiple cameras include a first camera device and at least one second camera device, and the method includes:

[0114] The first camera device rotates along the second dimension based on the target rotation position of the first dimension; the target rotation position is a center point position determined based on the starting position and the end position in the first dimension, or a position that differs from the angle corresponding to the center point position by a preset angle; the direction indicated by the first dimension and the direction indicated by the second dimension are perpendicular to each other;

[0115] During the rotation of the first camera device along the second dimension, the second camera device determines a first trajectory corresponding to a target light source of the first camera device based on at least one first target picture currently being captured, and controls the first camera device to rotate along the first dimension based on the first trajectory; the color of the target light source is a target color; the target color is a color whose color difference with the scene picture currently being captured by the second camera device is greater than a preset value;

[0116] In a process in which the first camera device rotates along the first dimension based on the first trajectory, the second camera device determines a second trajectory corresponding to the target light source based on at least one second target picture currently captured;

[0117] The second camera device performs coordinate calibration based on the first trajectory and the second trajectory.

[0118] In addition, the logic instructions in the above-mentioned memory 830 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, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of 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 and other media that can store program codes.

[0119] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in 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 a first camera device and at least one second camera device, the method includes:

[0120] The first camera device rotates along the second dimension based on the target rotation position of the first dimension; the target rotation position is a center point position determined based on the starting position and the end position in the first dimension, or a position that differs from the angle corresponding to the center point position by a preset angle; the direction indicated by the first dimension and the direction indicated by the second dimension are perpendicular to each other;

[0121] During the rotation of the first camera device along the second dimension, the second camera device determines a first trajectory corresponding to a target light source of the first camera device based on at least one first target picture currently being captured, and controls the first camera device to rotate along the first dimension based on the first trajectory; the color of the target light source is a target color; the target color is a color whose color difference with the scene picture currently being captured by the second camera device is greater than a preset value;

[0122] In a process in which the first camera device rotates along the first dimension based on the first trajectory, the second camera device determines a second trajectory corresponding to the target light source based on at least one second target picture currently captured;

[0123] The second camera device performs coordinate calibration based on the first trajectory and the second trajectory.

[0124] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the coordinate calibration method of multiple cameras provided by the above methods is implemented, wherein the multiple cameras include a first camera device and at least one second camera device, and the method includes:

[0125] The first camera device rotates along the second dimension based on the target rotation position of the first dimension; the target rotation position is a center point position determined based on the starting position and the end position in the first dimension, or a position that differs from the angle corresponding to the center point position by a preset angle; the direction indicated by the first dimension and the direction indicated by the second dimension are perpendicular to each other;

[0126] During the rotation of the first camera device along the second dimension, the second camera device determines a first trajectory corresponding to a target light source of the first camera device based on at least one first target picture currently being captured, and controls the first camera device to rotate along the first dimension based on the first trajectory; the color of the target light source is a target color; the target color is a color whose color difference with the scene picture currently being captured by the second camera device is greater than a preset value;

[0127] In a process in which the first camera device rotates along the first dimension based on the first trajectory, the second camera device determines a second trajectory corresponding to the target light source based on at least one second target picture currently captured;

[0128] The second camera device performs coordinate calibration based on the first trajectory and the second trajectory.

[0129] 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.

[0130] 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.

[0131] 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 a first camera device and at least one second camera device, and the method comprises: The first camera device rotates along the second dimension based on the target rotation position of the first dimension; the target rotation position is a center point position determined based on the starting position and the end position in the first dimension, or a position that differs from the angle corresponding to the center point position by a preset angle; the direction indicated by the first dimension and the direction indicated by the second dimension are perpendicular to each other; During the rotation of the first camera device along the second dimension, the second camera device determines a first trajectory corresponding to a target light source of the first camera device based on at least one first target picture currently being captured, and controls the first camera device to rotate along the first dimension based on the first trajectory; the color of the target light source is a target color; the target color is a color whose color difference with the scene picture currently being captured by the second camera device is greater than a preset value; In a process in which the first camera device rotates along the first dimension based on the first trajectory, the second camera device determines a second trajectory corresponding to the target light source based on at least one second target picture currently captured; The second camera device performs coordinate calibration based on the first trajectory and the second trajectory.

2. The coordinate calibration method of multiple cameras according to claim 1, characterized in that: The controlling the first camera device to rotate along the first dimension based on the first trajectory includes: The second camera device controls the first camera device to rotate along the first dimension based on a first center point position on the first trajectory.

3. The coordinate calibration method of multiple cameras according to claim 1, characterized in that: The method further comprises: The first camera device rotates along a first direction of a first dimension to a first maximum angle, and rotates along a second direction from the first maximum angle to a second maximum angle; the first direction and the second direction are opposite directions; The position corresponding to the first maximum angle is determined as the starting position, and the position corresponding to the second maximum angle is determined as the ending position.

4. The coordinate calibration method of multiple cameras according to any one of claims 1 to 3, characterized in that: The second camera device performs coordinate calibration based on the first trajectory and the second trajectory, including: The second camera device obtains a first angle corresponding to a first moment, a second angle corresponding to a second moment, a third angle corresponding to a third moment, and a fourth angle corresponding to a fourth moment of the first camera device; the first moment is a time corresponding to a first starting trajectory point of the first trajectory, and the second moment is a time corresponding to a first ending trajectory point of the first trajectory; the third moment is a time corresponding to a second starting trajectory point of the second trajectory, and the fourth moment is a time corresponding to a second ending trajectory point of the second trajectory; The second camera device performs coordinate calibration in the first dimension and the second dimension based on the first angle, the second angle, the third angle, the fourth angle, the length of the first track, the length of the second track, and the second center point position of the second track; or, The second camera device calibrates the coordinates in the first dimension and the second dimension based on the first angle, the second angle, the third angle, the fourth angle, the length of the first trajectory, the length of the second trajectory, and the first center point position of the first trajectory.

5. The coordinate calibration method of multiple cameras according to any one of claims 1 to 3, characterized in that: The second camera device performs coordinate calibration based on the first trajectory and the second trajectory, including: The second camera device obtains a first angle corresponding to the first camera device at a first moment and a second angle corresponding to the second moment, and performs coordinate calibration in a second dimension based on the first angle, the second angle and the first trajectory; the first moment is a time corresponding to a first starting trajectory point of the first trajectory, and the second moment is a time corresponding to a first ending trajectory point of the first trajectory; The second camera device obtains a third angle corresponding to the first camera device at a third moment and a fourth angle corresponding to the first moment, and performs coordinate calibration in the first dimension based on the third angle, the fourth angle and the second trajectory; the third moment is the time corresponding to the second starting trajectory point of the second trajectory, and the fourth moment is the time corresponding to the second ending trajectory point of the second trajectory.

6. The coordinate calibration method of multiple cameras according to any one of claims 1 to 3, characterized in that: The first camera device rotates along a second dimension based on a target rotation position of the first dimension, including: The first camera device rotates along a third direction to a third maximum angle in the second dimension based on the target rotation position, and rotates along a fourth direction from the third maximum angle; the third direction and the fourth direction are opposite directions.

7. A multi-camera, characterized in that: The multi-camera comprises a first camera device and at least one second camera device; The first camera device is used to rotate along a second dimension based on a target rotation position corresponding to the first dimension; the target rotation position is a center point position determined based on a starting position and an end position in the first dimension, or a position that differs from an angle corresponding to the center point position by a preset angle; the direction indicated by the first dimension and the direction indicated by the second dimension are perpendicular to each other; The second camera device is used to determine a first trajectory corresponding to a target light source of the first camera device based on at least one first target picture currently being captured, and control the first camera device to rotate along the first dimension based on the first trajectory during the rotation of the first camera device along the second dimension; the color of the target light source is a target color; the target color is a color whose color difference with the scene picture currently being captured by the second camera device is greater than a preset value; The second camera device is also used to determine the second trajectory corresponding to the target light source based on at least one second target picture currently captured during the process of the first camera device rotating along the first dimension based on the first trajectory, and to perform coordinate calibration based on the first trajectory and the second trajectory.

8. 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, the coordinate calibration method of multiple cameras as described in any one of claims 1 to 6 is implemented.

9. A 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

  • Full automatic calibration method of master-slave camera chain

    CN101794448A

  • Implementation method and device of face tracking camera shooting, computer equipment and storage medium

    CN112839165A

  • Zero position calibration method and device of camera, electronic equipment and storage medium

    CN115760998A

  • Multi-target tracking close-up shooting video monitoring system

    WO2012151777A1

  • Pedestrian trajectory tracking method and apparatus based on binocular camera calibration, computer device, and storage medium

    WO2021139176A1