Camera linkage shooting method and device, electronic equipment and storage medium
By pre-constructing the database and automatically adjusting the camera parameters, the linked shooting of multiple cameras is realized, solving the problem of the inability to comprehensively shoot from multiple angles in the existing technology, improving the shooting effect and accuracy, and reducing the need for manual control.
Patent Information
- Application Number
- CN202411415911.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-01-07
AI Technical Summary
In the prior art, shooting sites with multiple cameras cannot fully capture targets from various angles, resulting in poor shooting effects and manual control of other cameras is required, which increases the personnel burden and adjustment accuracy problems.
By pre-constructing the database, obtain the shooting parameters and location of the main camera, determine the actual position of the target object, and adjust its shooting parameters according to the location and database of the slave camera, realize the linkage shooting between the main camera and the slave camera, and automatically adjust the shooting parameters to achieve the realization of the shooting parameters. Shooting from multiple angles.
The coordinated shooting of multiple cameras has been achieved, reducing the need for manual adjustment, improving the shooting effect and accuracy, and reducing personnel burden and error rate.
Smart Images

Figure CN119277190A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of camera linkage, and in particular to a camera linkage shooting method, device, electronic equipment and storage medium. Background Art
[0002] In the prior art, for a shooting site with multiple cameras, when controlling the shooting of multiple cameras, only one camera can be controlled, and the other cameras still need to be controlled by other people. It is impossible to comprehensively shoot the target from various angles, so that the shooting effect of shooting the same target is not good enough. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a camera linkage shooting method, device, electronic device and storage medium, aiming to solve at least one of the above technical problems.
[0004] In a first aspect, the present invention solves the above-mentioned technical problem with the following technical solution: a camera linkage shooting method, the method comprising:
[0005] Acquire a first shooting parameter of a main camera set at a shooting site for a target object and a first position of the main camera;
[0006] determining the actual position of the target object photographed by the main camera according to a pre-built database, the first shooting parameters and the first position, wherein the database includes shooting parameters corresponding to when the camera photographs the target object at different actual positions at different positions of the shooting site;
[0007] Determine, according to the actual position, the second position of each slave camera arranged at the shooting site and the database, a second shooting parameter corresponding to when each slave camera shoots the target object at the corresponding second position;
[0008] For each of the slave cameras, the current shooting parameters of the slave camera are adjusted according to the second shooting parameters corresponding to the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameters.
[0009] The beneficial effects of the present invention are as follows: the corresponding shooting parameters when different cameras shoot objects located at different actual positions at different equipment positions in the shooting site are pre-constructed; based on the first shooting parameters and the first position of the main camera for the target object, in combination with the above-mentioned database, the actual position of the target object shot by the main camera can be determined; after knowing the actual position, the second shooting parameters corresponding to each of the slave cameras when shooting the target object at the corresponding second position can be determined according to the actual position, the second positions of the slave cameras arranged in the shooting site and the database; in this way, when the second shooting parameters of each slave camera when shooting the target object are known, the current shooting parameters of the slave camera can be adjusted based on the second shooting parameters to realize the linkage shooting of the main camera and the slave camera; as long as one camera (the main camera) among the cameras is controlled, the linkage shooting of other cameras (slave cameras) can be realized, so that the same target object can be shot from different angles, so that the final shooting effect is better.
[0010] Based on the above technical solution, the present invention can also be improved as follows.
[0011] Further, for each of the slave cameras, adjusting the current shooting parameter of the slave camera according to the second shooting parameter corresponding to the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameter, includes:
[0012] Calculating the distance between the slave camera and the target object according to the second shooting parameter corresponding to the slave camera;
[0013] According to the distance between the slave camera and the target object, the current shooting parameter of the slave camera is adjusted so that the slave camera shoots the target object based on the adjusted shooting parameter.
[0014] The beneficial effect of adopting the above further scheme is that by calculating the distance from the camera to the target object, the current shooting parameters of the camera are automatically adjusted without manual adjustment by the photographer. On the one hand, it reduces the burden on the photographer and the errors in following the shooting, and on the other hand, it also improves the adjustment accuracy.
[0015] Furthermore, the second shooting parameter includes a first shooting angle, and for each of the slave cameras, calculating the distance between the slave camera and the target object according to the second shooting parameter corresponding to the slave camera includes:
[0016] The distance between the slave camera and the target object is calculated according to the first shooting angle and the second position.
[0017] The beneficial effect of adopting the above further solution is that the distance between the camera and the target object can be accurately determined based on the first shooting angle and the second position.
[0018] Furthermore, the database further includes a first correspondence relationship, wherein the first correspondence relationship is a correspondence relationship between different distances corresponding to each target camera and different levels corresponding to optical magnifications, and for each of the slave cameras, adjusting the current shooting parameters of the slave camera according to the distance between the slave camera and the target object so that the slave camera shoots the target object based on the adjusted shooting parameters, includes:
[0019] determining an optical magnification of the slave camera according to the distance between the slave camera and the target object and the first corresponding relationship;
[0020] According to the level corresponding to the optical magnification of the slave camera, the current shooting parameter of the slave camera is adjusted so that the slave camera shoots the target object based on the adjusted shooting parameter.
[0021] The beneficial effect of adopting the above further scheme is that, according to the optical magnification of the slave camera, the current shooting parameters of the slave camera are adjusted. Compared with the manual advancement and zooming method in the prior art, on the one hand, it reduces the burden on the shooting personnel and the errors in following the shooting, and on the other hand, it improves the adjustment accuracy of the optical zoom.
[0022] Furthermore, the database further includes a second correspondence relationship, wherein the second correspondence relationship is a correspondence relationship between different distances and different focal lengths corresponding to each target camera, and the adjusting the current shooting parameters of the slave camera according to the level corresponding to the optical magnification of the slave camera so that the slave camera shoots the target object based on the adjusted shooting parameters includes:
[0023] Determine the focal length corresponding to the slave camera according to the second corresponding relationship and the distance between the slave camera and the target object;
[0024] According to the focal length and the level of optical magnification corresponding to the slave camera, the current shooting parameters of the slave camera are adjusted so that the slave camera shoots the target object based on the adjusted shooting parameters.
[0025] The beneficial effect of adopting the above further solution is that the current shooting parameters are directly adjusted by calculating the distance between the camera and the target object and the optical magnification, which can eliminate the problem of image blur when adjusting the focal length.
[0026] Furthermore, the shooting location includes a plurality of first areas, and the database is established based on the following method:
[0027] S1, selecting a plurality of reference points from the shooting site, and obtaining a geographical location of each of the reference points;
[0028] S2, setting a target camera in each of the first areas, obtaining a third position and a second shooting angle corresponding to the target camera in each of the first areas, wherein the second shooting angle is a parameter obtained based on the target camera, and the third position is an initialization position of the target camera in the corresponding first area;
[0029] S3, for each of the first areas, based on a third position corresponding to the target camera and the second shooting angle, determining a predicted position of the target camera photographed at the third position with the second shooting angle, and based on the third position, the second shooting angle and the predicted position, determining an actual position of the target photographed at the third position with the second shooting angle by the target camera;
[0030] S4, for each of the first regions, based on the predicted position and each of the geographical locations, determining a distance value between each of the geographical locations and the predicted position, and calculating a sum of each distance value corresponding to the first region;
[0031] S5, determining whether there is a sum less than a set threshold value among the sums corresponding to the first areas, and if so, determining the third position corresponding to the sum less than the set threshold value as the device position corresponding to the target camera, and executing S7;
[0032] S6, if it does not exist, screening each of the first areas according to the corresponding sum when it is not less than the set threshold, to obtain the remaining area; dividing the remaining area to obtain a plurality of second areas, taking each of the second areas as a new first area, and repeatedly executing S2 to S5 until the device position corresponding to the target camera in each of the first areas is obtained, and executing S7, wherein the number of the plurality of second areas is the same as the number of the plurality of first areas;
[0033] S7, establishing the database according to each device position corresponding to the target camera in each of the first areas, the second shooting angle and the actual position of each of the shooting targets.
[0034] The beneficial effect of adopting the above further scheme is that determining the device position of the target camera based on the above description can not only save manpower but also improve the determination accuracy compared to the method of measuring the position of the camera by field measurement in the prior art.
[0035] Furthermore, the method further comprises:
[0036] For each of the target cameras, based on the respective device positions of the target cameras and the actual positions of the respective shooting targets, determining the distance between the target camera and the respective shooting targets;
[0037] For each of the target cameras, determining the optical magnification corresponding to each of the distances according to the distances corresponding to the target camera;
[0038] Determining the first corresponding relationship according to each of the distances corresponding to each of the target cameras and the levels corresponding to each of the optical magnifications;
[0039] The step of establishing the database according to the respective device positions, the second shooting angles and the actual positions of the respective shooting targets corresponding to the target camera in each of the first areas comprises:
[0040] The database is established according to the first corresponding relationship, the respective device positions of the target camera corresponding to each of the first areas, the second shooting angle and the actual position of each of the shooting targets.
[0041] The beneficial effect of adopting the above further solution is that the above database also includes a first corresponding relationship, so that the optical magnification can be determined based on the first corresponding relationship, and the optical magnification of the slave camera can be adjusted.
[0042] In a second aspect, in order to solve the above technical problem, the present invention further provides a camera linkage shooting device, the device comprising:
[0043] An acquisition module, used for acquiring a first shooting parameter of a main camera set at a shooting site for a target object and a first position of the main camera;
[0044] an actual position determination module, configured to determine the actual position of the target object photographed by the main camera according to a pre-built database, the first shooting parameters and the first position, wherein the database includes shooting parameters corresponding to when the camera photographs target objects located at different actual positions at different positions of the shooting site;
[0045] A shooting parameter determination module, used for determining, according to the actual position, the second positions of the slave cameras arranged at the shooting site and the database, the second shooting parameters corresponding to each of the slave cameras when shooting the target object at the corresponding second position;
[0046] The linkage shooting module is used to adjust the current shooting parameters of each slave camera according to the second shooting parameters corresponding to the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameters.
[0047] In a third aspect, in order to solve the above-mentioned technical problem, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the camera linkage shooting method of the present application is implemented.
[0048] In a fourth aspect, in order to solve the above-mentioned technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the camera linkage shooting method of the present application is implemented.
[0049] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for describing the embodiments of the present invention are briefly introduced below.
[0051] Figure 1 A schematic diagram of a flow chart of a camera linkage shooting method provided by one embodiment of the present invention;
[0052] Figure 2 A schematic diagram of a shooting site division provided by an embodiment of the present invention;
[0053] Figure 3 A schematic diagram of a pitch angle provided by an embodiment of the present invention;
[0054] Figure 4 A schematic diagram of a plurality of second regions provided by an embodiment of the present invention;
[0055] Figure 5 A schematic structural diagram of a camera linkage shooting device provided by one embodiment of the present invention;
[0056] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0058] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0059] The solution provided by the embodiment of the present invention can be applied to any application scenario where linkage shooting is required at a shooting site. The solution provided by the embodiment of the present invention can be executed by any electronic device, for example, an electronic device that controls a camera.
[0060] The embodiment of the present invention provides a possible implementation method, such as Figure 1 As shown, a flowchart of a camera linkage shooting method is provided. The solution can be executed by an electronic device that controls the camera. For the convenience of description, the method provided by the embodiment of the present invention will be described below by taking the electronic device as an execution subject as an example. Figure 1 The method may include the following steps:
[0061] Step S10, obtaining a first shooting parameter of a main camera set at a shooting site for a target object and a first position of the main camera;
[0062] Step S20, determining the actual position of the target object photographed by the main camera according to a pre-built database, the first shooting parameters and the first position, wherein the database includes shooting parameters corresponding to when the camera photographs the target object at different actual positions at different positions of the shooting site;
[0063] Step S30, determining, according to the actual position, the second position of each slave camera arranged at the shooting site and the database, a second shooting parameter corresponding to when each slave camera shoots the target object at the corresponding second position;
[0064] Step S40: For each of the slave cameras, according to the second shooting parameter corresponding to the slave camera, adjust the current shooting parameter of the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameter.
[0065] Through the method of the present invention, corresponding shooting parameters are pre-constructed when different cameras shoot objects located at different actual positions at different equipment positions in the shooting site. Based on the first shooting parameters and the first position of the main camera for the target object, combined with the above-mentioned database, the actual position of the target object shot by the main camera can be determined. After knowing the actual position, the second shooting parameters corresponding to each of the slave cameras when shooting the target object at the corresponding second position can be determined according to the actual position, the second position of each slave camera set at the shooting site and the database. In this way, when the second shooting parameters of each slave camera when shooting the target object are known, the current shooting parameters of the slave camera can be adjusted based on the second shooting parameters to achieve linkage shooting of the main camera and the slave camera. As long as one camera (main camera) among the cameras is controlled, linkage shooting of other cameras (slave cameras) can be achieved, so that the same target object can be shot from different angles, so that the final shooting effect is better.
[0066] The solution of the present invention is further described below in conjunction with the following specific embodiments. In this embodiment, the camera linkage shooting method may include the following steps:
[0067] Step S10, obtaining a first shooting parameter of a main camera set at a shooting site for a target object and a first position of the main camera;
[0068] The shooting location refers to a place where shooting is required, such as a gymnasium, a stadium, a concert site, etc. Usually, a large shooting location will be equipped with multiple cameras for shooting, and the main camera can be any one of the multiple cameras. For the sake of distinction, the cameras other than the one of the multiple cameras can be called slave cameras.
[0069] Among them, the target object refers to the object that needs to be photographed at the shooting venue. For example, in a venue for a sports event, the target object may be a participant or referee in the sports game; in a venue for a concert, the target object may be a singer or performer.
[0070] Among them, the first shooting parameter refers to the internal parameter corresponding to the main camera when shooting the target object. The internal parameter is a parameter related to the camera's own characteristics, such as the camera's focal length, pixel size, etc.; the first position refers to the physical position of the main camera on the shooting site, which can be used as an external parameter of the main camera. The first position can be expressed based on the coordinates of the main camera in the world coordinate system.
[0071] Optionally, the above-mentioned first shooting parameters can be directly obtained from the main camera, including a first shooting angle, the first shooting angle includes a horizontal viewing angle and a vertical viewing angle, and the first position can be determined based on algorithm 1 proposed in this solution, which will be described in detail below.
[0072] Step S20, determining the actual position of the target object photographed by the main camera according to a pre-built database, the first shooting parameters and the first position, wherein the database includes shooting parameters corresponding to when the camera photographs the target object at different actual positions at different positions of the shooting site;
[0073] The database includes corresponding shooting parameters when a camera (which can be a main camera or a slave camera) shoots target objects located at different actual positions at different positions in the shooting scene. If it is a main camera, the shooting parameter refers to the first shooting parameter, and if it is a slave camera, the shooting parameter refers to the second shooting parameter.
[0074] Optionally, the shooting location includes a plurality of first areas, that is, the shooting location can be divided into a plurality of first areas. For example, see Figure 2 As shown, the shooting location can be divided into eight first areas, namely, A, B, C, D, E, F, G and Sin.
[0075] The above database can be determined based on the following methods:
[0076] S1, selecting a plurality of reference points from the shooting site, and obtaining a geographical location of each of the reference points;
[0077] The reference point may be at least one representative position point randomly selected on the shooting site, and may be used to determine the shooting target of the target camera, that is, the actual target point.
[0078] As an example, see Figure 2 As shown, the geographical locations of the multiple reference point pairs can be A1 (0.0, 0.0), A19 (0.0, 18.0), M1 (12.0, 0.0), M19 (12.0, 18.0), a total of four locations. The Z-axis coordinate of each reference point can be (0.0) by default.
[0079] S2, setting a target camera in each of the first areas, obtaining a third position and a second shooting angle corresponding to the target camera in each of the first areas, wherein the second shooting angle is a parameter obtained based on the target camera, and the third position is an initialization position of the target camera in the corresponding first area;
[0080] The target camera refers to any camera, which can be used as a master camera or a slave camera. Since the processing process of the target camera in each first area is the same, the following takes a target camera in a first area as an example to determine the device position corresponding to each shooting target when the target camera in the first area shoots each shooting target at a second shooting angle.
[0081] The third position refers to the initialization position of the target camera in the first area, and the initialization position can be understood as a hypothetical position. The second shooting angle can include a horizontal viewing angle and a vertical viewing angle.
[0082] As an example, see Figure 2 As shown, Figure 2 The solid rectangle in represents the third position corresponding to the target camera in each first area.
[0083] S3, for each of the first areas, based on the third position corresponding to the target camera and the second shooting angle, determining a predicted position of the target camera photographed at the third position with the second shooting angle; and based on the third position, the second shooting angle and the predicted position, determining an actual position of the target photographed by the target camera at the third position with the second shooting angle;
[0084] The predicted position refers to the predicted geographical location of the object that can be photographed when the target camera is at the third position and photographs at the second shooting angle. The specific implementation of S3 can be implemented based on the existing technology and will not be repeated here.
[0085] The shooting target may be understood as the actual target point shot by the target camera at the third position at the second shooting angle.
[0086] Optionally, one implementation of determining the actual position of the target photographed by the target camera at the third position and at the second shooting angle based on the third position, the second shooting angle and the predicted position is:
[0087] Determine a distance value between the target camera and the shooting target based on the third position and the second shooting angle;
[0088] Based on the distance value between the target camera and the shooting target and the second shooting angle, the actual position of the shooting target photographed by the target camera at the third position at the second shooting angle is calculated.
[0089] As an example, based on Figure 2As shown in the gray triangle, the distance value between the target camera and the shooting target is the hypotenuse of the gray triangle. When the actual position of the shooting target is unknown, the length of the two right-angled sides of the gray triangle can be obtained through the cos function and the sin function according to the horizontal viewing angle in the second shooting angle. Then, the actual position of the shooting target can be obtained through the assumed position of the shooting point (predicted position).
[0090] Among them, the implementation process of obtaining the actual position of the shooting target by the position of the assumed shooting point (predicted position) is as follows: based on the third position corresponding to the target camera and the second shooting angle, determine the predicted position captured by the target camera at the third position with the second shooting angle, and use the distance between the predicted position and the corresponding actual position as the distance error. If the distance error is within the preset range, it means that the third position assumption is correct, and the corresponding predicted position within the preset range is used as the actual position of the shooting target; if the distance error is not within the preset range, reset the third position, and then determine the predicted position corresponding to the new third position based on the new third position in the same manner as above, until the distance error corresponding to the new third position is within the preset range, and use the corresponding predicted position within the preset range as the actual position of the shooting target.
[0091] It should be noted that the sum of the first areas described below may also be used as the distance error, and the preset range means being less than a set threshold.
[0092] The height of the camera is usually constant and usually does not exceed 100 meters, but it is unknown. The second shooting angle can also include a bird's-eye view, which can be directly read from the camera. For details, see Figure 3 The top view shown in is based on Figure 3 The third position and the top view of the camera (which may be the target camera) shown in the figure can be calculated based on the tan function to obtain the distance between the target camera and the shooting target ( Figure 3 The distance between the target observation points shown in Figure 3 The hypotenuse in .
[0093] Thus, through the above calculation method, three values can also be obtained: the third position (horizontal and vertical coordinate positions) of the target camera, the height of the target camera, and the distance between the target camera and the photographed target.
[0094] The above-mentioned solution for calculating the actual position of the photographed target can be referred to as Algorithm 2.
[0095] S4, for each of the first regions, based on the predicted position and each of the geographical locations, determining a distance value between each of the geographical locations and the predicted position, and calculating a sum of each distance value corresponding to the first region;
[0096] Among them, for a reference point, the distance value between the geographical location of the reference point and the predicted position can reflect the shooting effect when the target camera is at the third position and shooting at the second shooting angle. The smaller the distance value, the better the shooting effect. Conversely, the larger the distance value, the worse the shooting effect. It also means that the target camera cannot obtain an ideal shooting effect when it is at the third position and shooting at the second shooting angle.
[0097] In the solution of the present application, in a first area, the sum of the distance values corresponding to the target camera in the first area represents the shooting effect when the target camera shoots objects corresponding to the actual positions in the first area at a second shooting angle.
[0098] As an example, see Figure 2 The schematic diagram shown in Figure 2 In , it is assumed that the first area where the target camera is located is area D, and the third position of the target camera in area D is G27 (6.0, 27.0), that is, Figure 2 At the position corresponding to the solid rectangle in the middle D area, the second shooting angle of the target camera in the D area is A1 (15.0, 75.0), which means that the horizontal viewing angle is 15.0 degrees and the vertical viewing angle is 75.0 degrees.
[0099] S5, determining whether there is a sum less than a set threshold value among the sums corresponding to the first areas, and if so, determining the third position corresponding to the sum less than the set threshold value as the device position corresponding to the target camera, and executing S7;
[0100] The device position corresponding to the target camera in a first area can be understood as the actual geographical location of the target camera when it photographs any target in the first area at the second shooting angle.
[0101] The sum being less than the set threshold value indicates that the target camera is at the third position in the first area corresponding to the sum, and when shooting the objects corresponding to the respective actual positions at the second shooting angle, an ideal shooting effect can be achieved. Therefore, the third position corresponding to the sum being less than the set threshold value can be determined as the device position corresponding to the target camera.
[0102] S6, if it does not exist, screen each of the first areas according to the corresponding sum when it is not less than the set threshold, that is, among the sums corresponding to the sums not less than the set threshold, the first area corresponding to the sum greater than the set value (the set value is greater than the set threshold), that is, the first area corresponding to the larger sum is deleted from each of the first areas to obtain the remaining area; at this time, the remaining area may include at least one first area; divide the remaining area to obtain multiple second areas, and use each of the second areas as a new first area, so that the target camera corresponds to a new third position and a new second shooting angle in each second area, and repeat S2 to S5 until the device position corresponding to the target camera in each of the first areas is obtained, that is, execute S7, wherein the number of the multiple second areas is the same as the number of the multiple first areas;
[0103] As an example, see Figure 4 , assuming Figure 4 yes Figure 2 As shown in the figure, the length of the shooting site is 18 and the height is 10. Then the third position in Area A is A1 (-10, -5). If Area A is not eliminated, that is, the remaining area is Area A, then Area A can be divided into 8 areas formed by 4 new reference points B1, B2, B3, and B4.
[0104] S7, establishing the database according to each device position corresponding to the target camera in each of the first areas, the second shooting angle and the actual position of each of the shooting targets.
[0105] The above-mentioned solution for determining the device position corresponding to the target camera in each first area is the algorithm 1 mentioned above.
[0106] Step S30, determining, according to the actual position, the second position of each slave camera arranged at the shooting site and the database, a second shooting parameter corresponding to when each slave camera shoots the target object at the corresponding second position;
[0107] The second shooting parameter usually refers to an intrinsic parameter of the camera, such as focal length.
[0108] After the second shooting parameter is determined, it means that the shooting effect is most ideal when the camera is at the corresponding device position and shoots the target object with the corresponding second shooting parameter.
[0109] Step S40: For each of the slave cameras, according to the second shooting parameter corresponding to the slave camera, adjust the current shooting parameter of the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameter.
[0110] Generally speaking, the second shooting parameter corresponds to the current shooting parameter. For example, if the second shooting parameter is the focal length and the current shooting parameter is also the focal length, the focal length of the camera is adjusted.
[0111] Optionally, for each of the slave cameras, adjusting the current shooting parameter of the slave camera according to the second shooting parameter corresponding to the slave camera so that the slave camera shoots the target object based on the adjusted shooting parameter includes:
[0112] S401, calculating the distance between the slave camera and the target object according to a second shooting parameter corresponding to the slave camera;
[0113] S402: Adjust the current shooting parameters of the slave camera according to the distance between the slave camera and the target object, so that the slave camera shoots the target object based on the adjusted shooting parameters.
[0114] The distance between the camera and the object directly affects the shooting effect of the camera. Based on the distance between the slave camera and the target object, the current shooting parameters of the slave camera can be automatically adjusted so that the slave camera can better shoot the target object.
[0115] Optionally, the second shooting parameter may include a first shooting angle, and for each of the slave cameras, the step S401 of calculating the distance between the slave camera and the target object according to the second shooting parameter corresponding to the slave camera may include:
[0116] The distance between the slave camera and the target object is calculated according to the first shooting angle and the second position.
[0117] The height of the camera is usually constant and usually does not exceed 100 meters, but it is unknown. The first shooting angle may also include a bird's-eye view, which can be directly read from the camera. For details, see Figure 3 The top view shown in is based on Figure 3 The second position and the top view of the camera (which may be a camera) shown in the figure can be obtained based on the tan function calculation from the camera to the target object ( Figure 3 The distance between the target observation points shown in Figure 3 The hypotenuse in .
[0118] Optionally, during the process of building the database, the method further includes:
[0119] For each of the target cameras, based on the respective device positions of the target cameras and the actual positions of the respective shooting targets, determining the distance between the target camera and the respective shooting targets;
[0120] For each of the target cameras, determining the optical magnification corresponding to each of the distances according to the distances corresponding to the target camera;
[0121] Determining the first corresponding relationship according to each of the distances corresponding to each of the target cameras and the levels corresponding to each of the optical magnifications;
[0122] The step of establishing the database according to the respective device positions, the second shooting angles and the actual positions of the respective shooting targets corresponding to the target camera in each of the first areas comprises:
[0123] The database is established according to the first corresponding relationship, the respective device positions of the target camera corresponding to each of the first areas, the second shooting angle and the actual position of each of the shooting targets.
[0124] Based on the above solution, the database also includes the first corresponding relationship. Then, in the application process, in S402, for each of the slave cameras, according to the distance between the slave camera and the target object, adjusting the current shooting parameter of the slave camera so that the slave camera shoots the target object based on the adjusted shooting parameter includes:
[0125] determining an optical magnification of the slave camera according to the distance between the slave camera and the target object and the first corresponding relationship;
[0126] According to the level corresponding to the optical magnification of the slave camera, the current shooting parameter of the slave camera is adjusted so that the slave camera shoots the target object based on the adjusted shooting parameter.
[0127] Based on the above solution, it can be ensured that the optical zoom of the camera is just right. As an example, if the target object is exactly the height of a person, then if the distance is 10 meters, the zoom (optical magnification) is 1 times, and if the distance is 30 meters, the zoom should be magnified to 3 times. In this way, the optical zoom can be automatically performed according to the distance to adjust the size of the captured scene, and it can always be consistent without manual optical zoom.
[0128] In the solution of the present application, the current shooting parameters of the slave camera may be adjusted directly based on the determined optical magnification of the slave camera, or may be adjusted based on the level corresponding to the optical magnification of the slave camera.
[0129] Different levels of optical magnification can be set based on the proportion of the frame occupied by the target object.
[0130] The traditional way to control optical zoom is to push in and pull out, while in this solution, the way to control optical zoom is to perform optical zoom directly through preset levels. Specifically, each preset optical magnification corresponds to a level, which represents the proportion of the screen occupied by the target object in the scene after optical zoom is performed at an optical magnification. As an example, the traditional solution is to magnify 1x, 1.5x and 2x, and what is controlled is the magnification of the camera, that is, the optical magnifications are 1x, 1.5x and 2x, respectively, and the corresponding levels are that the target object occupies 1 / 4 of the screen, 1 / 2 of the screen, and the entire screen in the scene, respectively. In this way, the operator can control the optical zoom more intuitively.
[0131] Optionally, during the process of building the database, the method further includes:
[0132] For each of the target cameras, determining a focal length corresponding to each of the distances according to the distances corresponding to the target camera;
[0133] Determining the second corresponding relationship according to each of the distances and each of the focal lengths corresponding to each of the target cameras;
[0134] The step of establishing the database according to the first corresponding relationship, the respective device positions corresponding to the target camera in each of the first areas, the second shooting angle and the actual position of each of the shooting targets comprises:
[0135] The database is established according to the second corresponding relationship, the first corresponding relationship, each device position corresponding to the target camera in each of the first areas, the second shooting angle and the actual position of each of the shooting targets.
[0136] Based on the above solution, the database also includes a second corresponding relationship. In the application process, the current shooting parameters of the slave camera are adjusted according to the level corresponding to the optical magnification of the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameters, including:
[0137] Determine the focal length corresponding to the slave camera according to the second corresponding relationship and the distance between the slave camera and the target object;
[0138] According to the focal length and the level of optical magnification corresponding to the slave camera, the current shooting parameters of the slave camera are adjusted so that the slave camera shoots the target object based on the adjusted shooting parameters.
[0139] The concept of zoom is similar to the fact that distant objects will be blurred when viewed by myopic eyes. When shooting with a camera, you need to refocus in two situations: one is after optical zooming, and the other is after the shooting distance changes. Currently, most cameras require automatic zooming or manual zooming. Automatic zooming has a period of blurring before clarity. However, if the distance and optical magnification are known, the focal length can be set directly according to the camera parameters, and the image can be directly and quickly cleared without using automatic zooming. Based on this, in the present application, after determining the focal length of the slave camera, the current shooting parameters of the slave camera can be more accurately adjusted based on the focal length and optical magnification level corresponding to the slave camera, so that the optical zoom of the slave camera is just right and the focal length remains clear, that is, the ideal shooting effect is achieved.
[0140] Compared with the prior art, the solution of this application has the following beneficial effects:
[0141] 1. When controlling the camera shooting on a daily basis, only one camera can be controlled, and other cameras need to be controlled by other people. It is impossible to shoot the target lens from various angles. Using this solution, you only need to control any one camera to ensure that all cameras can shoot the target lens.
[0142] 2. When controlling the camera, it is also necessary to control the zooming in and zooming out operations to ensure that the size of the shooting target in the lens is appropriate. If the zooming in and zooming out of the camera is controlled manually, on the one hand, it increases the burden on the shooting personnel and may cause mistakes in following the shooting. On the other hand, the camera can control the zooming in and out to avoid excessive or insufficient zooming in and out. Through the scheme of this application, the camera is automatically optically zoomed by calculating the distance from the camera to the shooting target position, and the optical zoom is directly performed at a preset level, so that the optical zoom of the camera is just right, while saving labor costs.
[0143] 3. After the camera moves or zooms in or out, the focal length needs to be changed to ensure the clarity of the image. There are currently two ways to do this: one is automatic focus and the other is manual focus. Automatic focus takes time and the image will be blurry for about 1-3 seconds. Manual focus requires more work for the operator, which will affect the operator's push, pull, pan and tilt, and will also cause excessive or insufficient focus. Through this solution, the focal length is directly adjusted by calculating the distance from the camera to the shooting target position and the current optical zoom multiple, eliminating the blurring of the image when adjusting the focal length and saving labor costs.
[0144] 4. If you want to achieve automatic tracking and shooting of multiple cameras at the same time, you need to know the position of the camera, and then use Algorithm 1 in this solution to accurately and automatically calculate the position of the camera.
[0145] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present invention also provides a camera linkage shooting device 20, such as Figure 5 As shown in , the camera linkage shooting device 20 may include an acquisition module 210, an actual position determination module 220, a shooting parameter determination module 230 and a linkage shooting module 240, wherein:
[0146] An acquisition module 210 is used to acquire a first shooting parameter of a main camera set at a shooting site for a target object and a first position of the main camera;
[0147] an actual position determination module 220, configured to determine the actual position of the target object photographed by the main camera according to a pre-built database, the first shooting parameters and the first position, wherein the database includes shooting parameters corresponding to when the camera photographs target objects at different actual positions at different positions of the shooting site;
[0148] A shooting parameter determination module 230, configured to determine, according to the actual position, the second positions of the slave cameras arranged at the shooting site, and the database, a second shooting parameter corresponding to each of the slave cameras when shooting the target object at the corresponding second position;
[0149] The linkage shooting module 240 is used to adjust the current shooting parameters of each slave camera according to the second shooting parameters corresponding to the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameters.
[0150] Optionally, for each of the slave cameras, when the linkage shooting module 240 adjusts the current shooting parameter of the slave camera according to the second shooting parameter corresponding to the slave camera so that the slave camera shoots the target object based on the adjusted shooting parameter, it is specifically configured to:
[0151] Calculating the distance between the slave camera and the target object according to the second shooting parameter corresponding to the slave camera;
[0152] According to the distance between the slave camera and the target object, the current shooting parameter of the slave camera is adjusted so that the slave camera shoots the target object based on the adjusted shooting parameter.
[0153] Optionally, the second shooting parameter includes a first shooting angle, and for each of the slave cameras, when the linkage shooting module 240 calculates the distance between the slave camera and the target object according to the second shooting parameter corresponding to the slave camera, it is specifically used to:
[0154] The distance between the slave camera and the target object is calculated according to the first shooting angle and the second position.
[0155] Optionally, the database further includes a first correspondence relationship, which is a correspondence relationship between different distances corresponding to each target camera and different levels corresponding to optical magnifications. For each of the slave cameras, the linkage shooting module 240 adjusts the current shooting parameters of the slave camera according to the distance between the slave camera and the target object so that the slave camera shoots the target object based on the adjusted shooting parameters, specifically for:
[0156] determining an optical magnification of the slave camera according to the distance between the slave camera and the target object and the first corresponding relationship;
[0157] According to the level corresponding to the optical magnification of the slave camera, the current shooting parameter of the slave camera is adjusted so that the slave camera shoots the target object based on the adjusted shooting parameter.
[0158] Optionally, the database further includes a second correspondence relationship, where the second correspondence relationship is a correspondence relationship between different distances and different focal lengths corresponding to each target camera, and the linkage shooting module 240 adjusts the current shooting parameters of the slave camera according to the level corresponding to the optical magnification of the slave camera so that the slave camera shoots the target object based on the adjusted shooting parameters, specifically for:
[0159] Determine the focal length corresponding to the slave camera according to the second corresponding relationship and the distance between the slave camera and the target object;
[0160] According to the focal length and the level of optical magnification corresponding to the slave camera, the current shooting parameters of the slave camera are adjusted so that the slave camera shoots the target object based on the adjusted shooting parameters.
[0161] Optionally, the shooting location includes a plurality of first areas, and the database is established based on a database construction module, and the database construction module establishes the database through the following steps:
[0162] S1, selecting a plurality of reference points from the shooting site, and obtaining a geographical location of each of the reference points;
[0163] S2, setting a target camera in each of the first areas, obtaining a third position and a second shooting angle corresponding to the target camera in each of the first areas, wherein the second shooting angle is a parameter obtained based on the target camera, and the third position is an initialization position of the target camera in the corresponding first area;
[0164] S3, for each of the first areas, based on a third position corresponding to the target camera and the second shooting angle, determining a predicted position of the target camera photographed at the third position with the second shooting angle, and based on the third position, the second shooting angle and the predicted position, determining an actual position of the target photographed at the third position with the second shooting angle by the target camera;
[0165] S4, for each of the first regions, based on the predicted position and each of the geographical locations, determining a distance value between each of the geographical locations and the predicted position, and calculating a sum of each distance value corresponding to the first region;
[0166] S5, determining whether there is a sum less than a set threshold value among the sums corresponding to the first areas, and if so, determining the third position corresponding to the sum less than the set threshold value as the device position corresponding to the target camera, and executing S7;
[0167] S6, if it does not exist, screening each of the first areas according to the corresponding sum when it is not less than the set threshold, to obtain the remaining area; dividing the remaining area to obtain a plurality of second areas, taking each of the second areas as a new first area, and repeatedly executing S2 to S5 until the device position corresponding to the target camera in each of the first areas is obtained, and executing S7, wherein the number of the plurality of second areas is the same as the number of the plurality of first areas;
[0168] S7, establishing the database according to each device position corresponding to the target camera in each of the first areas, the second shooting angle and the actual position of each of the shooting targets.
[0169] Optionally, the device further comprises:
[0170] A first correspondence establishing module is used to determine, for each of the target cameras, the distance between the target camera and each of the shooting targets based on each device position of the target camera and the actual position of each of the shooting targets; for each of the target cameras, determine the optical magnification corresponding to each of the distances corresponding to the target camera; and determine the first correspondence according to each of the distances corresponding to each of the target cameras and the level corresponding to each of the optical magnifications;
[0171] When the database building module establishes the database according to each device position, the second shooting angle and the actual position of each shooting target corresponding to the target camera in each first area, the database building module is specifically used to:
[0172] The database is established according to the first corresponding relationship, the respective device positions of the target camera corresponding to each of the first areas, the second shooting angle and the actual position of each of the shooting targets.
[0173] The camera-linked shooting device of the embodiment of the present invention can execute the camera-linked shooting method provided by the embodiment of the present invention, and the implementation principle is similar. The actions performed by each module and unit in the camera-linked shooting device in each embodiment of the present invention correspond to the steps in the camera-linked shooting method in each embodiment of the present invention. For the detailed functional description of each module of the camera-linked shooting device, please refer to the description in the corresponding camera-linked shooting method shown in the previous text, which will not be repeated here.
[0174] Among them, the above-mentioned camera-linked shooting device can be a computer program (including program code) running in a computer device, for example, the camera-linked shooting device is an application software; the device can be used to execute the corresponding steps in the method provided in an embodiment of the present invention.
[0175] In some embodiments, the camera linkage shooting device provided by the embodiment of the present invention can be implemented in a combination of software and hardware. As an example, the camera linkage shooting device provided by the embodiment of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the camera linkage shooting method provided by the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.
[0176] In other embodiments, the camera linkage shooting device provided by the embodiment of the present invention can be implemented in a software manner. Figure 5A camera linkage shooting device stored in a memory is shown, which can be software in the form of a program and a plug-in, and includes a series of modules, including an acquisition module 210, an actual position determination module 220, a shooting parameter determination module 230 and a linkage shooting module 240, for implementing the camera linkage shooting method provided in an embodiment of the present invention.
[0177] The modules involved in the embodiments of the present invention may be implemented by software or hardware, wherein the name of a module does not limit the module itself in some cases.
[0178] Based on the same principle as the method shown in the embodiments of the present invention, an electronic device is also provided in the embodiments of the present invention, which may include but is not limited to: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the method shown in any embodiment of the present invention by calling the computer program.
[0179] In an alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.
[0180] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0181] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0182] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0183] The memory 4003 is used to store the application code (computer program) for executing the solution of the present invention, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the content shown in the above method embodiment.
[0184] The electronic device may also be a terminal device. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0185] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.
[0186] According to another aspect of the present invention, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the implementation modes of the above-mentioned various embodiments.
[0187] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0188] It should be understood that the flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, the program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0189] The computer-readable storage medium provided by the embodiment of the present invention may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0190] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0191] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the disclosure scope involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.
Claims
1. A camera linkage shooting method, characterized in that: include: Acquire a first shooting parameter of a main camera set at a shooting site for a target object and a first position of the main camera; determining the actual position of the target object photographed by the main camera according to a pre-built database, the first shooting parameters and the first position, wherein the database includes shooting parameters corresponding to when the camera photographs the target object at different actual positions at different positions of the shooting site; Determine, according to the actual position, the second position of each slave camera arranged at the shooting site and the database, a second shooting parameter corresponding to when each slave camera shoots the target object at the corresponding second position; For each of the slave cameras, the current shooting parameters of the slave camera are adjusted according to the second shooting parameters corresponding to the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameters.
2. The method according to claim 1, characterized in that For each of the slave cameras, adjusting the current shooting parameter of the slave camera according to the second shooting parameter corresponding to the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameter, includes: Calculating the distance between the slave camera and the target object according to the second shooting parameter corresponding to the slave camera; According to the distance between the slave camera and the target object, the current shooting parameter of the slave camera is adjusted so that the slave camera shoots the target object based on the adjusted shooting parameter.
3. The method according to claim 2, characterized in that The second shooting parameter includes a first shooting angle, and for each of the slave cameras, calculating the distance between the slave camera and the target object according to the second shooting parameter corresponding to the slave camera includes: The distance between the slave camera and the target object is calculated according to the first shooting angle and the second position.
4. The method according to claim 2, characterized in that: The database also includes a first correspondence relationship, which is a correspondence relationship between different distances corresponding to each target camera and different levels corresponding to optical magnifications. For each of the slave cameras, adjusting the current shooting parameters of the slave camera according to the distance between the slave camera and the target object so that the slave camera shoots the target object based on the adjusted shooting parameters includes: determining an optical magnification of the slave camera according to the distance between the slave camera and the target object and the first corresponding relationship; According to the level corresponding to the optical magnification of the slave camera, the current shooting parameter of the slave camera is adjusted so that the slave camera shoots the target object based on the adjusted shooting parameter.
5. The method according to claim 4, characterized in that The database also includes a second correspondence relationship, wherein the second correspondence relationship is a correspondence relationship between different distances and different focal lengths corresponding to each target camera, and adjusting the current shooting parameters of the slave camera according to the level corresponding to the optical magnification of the slave camera so that the slave camera shoots the target object based on the adjusted shooting parameters includes: Determine the focal length corresponding to the slave camera according to the second corresponding relationship and the distance between the slave camera and the target object; According to the focal length and the level of optical magnification corresponding to the slave camera, the current shooting parameters of the slave camera are adjusted so that the slave camera shoots the target object based on the adjusted shooting parameters.
6. The method according to any one of claims 1 to 5, characterized in that The shooting location includes a plurality of first areas, and the database is established based on the following method: S1, selecting a plurality of reference points from the shooting site, and obtaining a geographical location of each of the reference points; S2, setting a target camera in each of the first areas, and obtaining a third position and a second shooting angle corresponding to the target camera in each of the first areas, wherein the second shooting angle is a parameter obtained based on the target camera, and the third position is an assumed position of the target camera in the corresponding first area; S3, for each of the first areas, based on a third position corresponding to the target camera and the second shooting angle, determining a predicted position of the target camera photographed at the third position with the second shooting angle, and based on the third position, the second shooting angle and the predicted position, determining an actual position of the target photographed at the third position with the second shooting angle by the target camera; S4, for each of the first regions, based on the predicted position and each of the geographical locations, determining a distance value between each of the geographical locations and the predicted position, and calculating a sum of each distance value corresponding to the first region; S5, determining whether there is a sum less than a set threshold value among the sums corresponding to the first areas, and if so, determining the third position corresponding to the sum less than the set threshold value as the device position corresponding to the target camera, and executing S7; S6, if it does not exist, screening each of the first areas according to the corresponding sum when it is not less than the set threshold, to obtain the remaining area; dividing the remaining area to obtain a plurality of second areas, taking each of the second areas as a new first area, and repeatedly executing S2 to S5 until the device position corresponding to the target camera in each of the first areas is obtained, and executing S7, wherein the number of the plurality of second areas is the same as the number of the plurality of first areas; S7, establishing the database according to each device position corresponding to the target camera in each of the first areas, the second shooting angle and the actual position of each of the shooting targets.
7. The method according to claim 5, characterized in that The method further comprises: For each of the target cameras, based on the respective device positions of the target cameras and the actual positions of the respective shooting targets, determining the distance between the target camera and the respective shooting targets; For each of the target cameras, determining the optical magnification corresponding to each of the distances according to the distances corresponding to the target camera; Determining the first corresponding relationship according to each of the distances corresponding to each of the target cameras and the levels corresponding to each of the optical magnifications; The step of establishing the database according to the respective device positions, the second shooting angles and the actual positions of the respective shooting targets corresponding to the target camera in each of the first areas comprises: The database is established according to the first corresponding relationship, the respective device positions of the target camera corresponding to each of the first areas, the second shooting angle and the actual position of each of the shooting targets.
8. A camera-linked shooting device, characterized in that: include: An acquisition module, used for acquiring a first shooting parameter of a main camera set at a shooting site for a target object and a first position of the main camera; an actual position determination module, configured to determine the actual position of the target object photographed by the main camera according to a pre-built database, the first shooting parameters and the first position, wherein the database includes shooting parameters corresponding to when the camera photographs target objects located at different actual positions at different positions of the shooting site; A shooting parameter determination module, used for determining, according to the actual position, the second positions of the slave cameras arranged at the shooting site and the database, the second shooting parameters corresponding to each of the slave cameras when shooting the target object at the corresponding second position; The linkage shooting module is used to adjust the current shooting parameters of each slave camera according to the second shooting parameters corresponding to the slave camera, so that the slave camera shoots the target object based on the adjusted shooting parameters.
9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.