Camera deployment method, camera deployment system, and computer-readable storage medium

The method optimizes camera placement in substations by calculating distances, angles, and occlusion to address occlusion issues, ensuring effective target observation and safety compliance.

CN113724336BActive Publication Date: 2024-12-06ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202110910065.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-09
Publication Date
2024-12-06
Estimated Expiration
2041-08-09

AI Technical Summary

Technical Problem

Existing methods for camera placement in substations fail to accurately calculate occlusion and consider its impact on target recognition and imaging, leading to inefficient and suboptimal camera distribution.

Method used

A method involving obtaining deployable ranges and targets in a 3D model, calculating distances, observation angles, and occlusion conditions to filter optimal camera positions, using weight coefficients and optimization solvers to ensure comprehensive value thresholds are met.

Benefits of technology

Ensures optimal camera placement that enhances target observation while meeting real-world application requirements and safety standards, improving the accuracy and efficiency of camera deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113724336B_ABST
    Figure CN113724336B_ABST
Patent Text Reader

Abstract

The present application discloses a camera placement method, a camera placement system, and a computer-readable storage medium, the method comprising: obtaining a range of camera placements and a target to be monitored in a three-dimensional model; wherein the range of camera placements includes multiple placement positions, each placement position is provided with a corresponding camera; obtaining a first distance, an observation angle, and an occlusion condition between the camera at each placement position and the target to be monitored, and filtering multiple placement positions from all placement positions according to all first distances, observation angles, and occlusion conditions to form a first collection; obtaining a first spatial range of the target to be monitored covered by the camera at each placement position in the first collection, and filtering the optimal placement position from the first collection according to all first spatial ranges. In this way, the placement positions of the cameras can be reasonably planned, which not only ensures the best observation of the target to be monitored, but also makes the placement positions more meet the application requirements of real scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent monitoring, and in particular to a camera deployment method, a camera deployment system, and a computer-readable storage medium. Background Art

[0002] The power industry is an important energy industry to ensure the development of the national economy and social progress. The construction and improvement of power grid engineering facilities are at the forefront of national infrastructure construction. As an important part of the national power grid, substations play a vital role in power transmission. At present, substation security mainly relies on two traditional methods: personnel patrol and video surveillance. With the development of intelligent monitoring technology, unmanned operation has become an inevitable trend in the development of substation automation. Matching it is the application of a full range of intelligent monitoring systems. How to scientifically and efficiently plan the location of monitoring points according to power equipment and on-site environment, how to reduce the number of points and improve economic benefits, these are technical problems that need to be solved in the engineering design stage.

[0003] However, the commonly used methods are as follows: (1) using the substation plane distribution map to plan the camera distribution location, (2) obtaining the monitoring area range and camera parameters based on the substation three-dimensional physical model, calibrating the camera installation position and angle, obtaining the monitoring screen in the three-dimensional model according to the camera parameters, and determining the camera distribution location by comparing the monitored area and the monitoring screen, (3) determining the monitoring sample points on the map, determining the monitoring range according to the sample point distribution area, and dividing the monitoring range into grid units, combining the weight of the sample points and the relationship between the sample points and the positions of each unit to calculate the weight value of each grid, and then generating the camera distribution location according to the grid unit weight. These methods cannot accurately calculate the occlusion of the distribution location, and do not consider the impact of the distribution location on target recognition and the impact of the distribution location on the target imaging effect. Therefore, it is urgent to propose a new camera distribution method. Summary of the invention

[0004] The main technical problem solved by the present application is to provide a camera placement method, a camera placement system and a computer-readable storage medium, which can reasonably plan the camera placement positions.

[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a camera placement method, comprising: obtaining a deployable range of cameras and a target to be monitored in a three-dimensional model; wherein the deployable range includes multiple placement positions, and each placement position is provided with a corresponding camera; obtaining a first distance, an observation angle and an occlusion condition between the camera at each placement position and the target to be monitored, and filtering out multiple placement positions from all the placement positions based on all the first distances, the observation angles and the occlusion conditions to form a first collection; obtaining a first spatial range of the target to be monitored covered by the camera of each of the placement positions in the first collection, and filtering out the optimal placement position from the first collection based on all the first spatial ranges.

[0006] Among them, before the step of obtaining the first distance between the camera at each layout position and the target to be monitored, the observation angle and the occlusion condition, it includes: obtaining the layout distance of the target to be monitored within the imaging range of the camera at each layout position according to the focal length and resolution of the camera at each layout position; obtaining the maximum layout distance from all the layout distances, and screening out all the layout positions whose distance to the target to be monitored is less than or equal to the maximum layout distance from the possible layout range to form a first intermediate collection.

[0007] Among them, before the step of obtaining the first distance between the camera at each layout position and the target to be monitored, the observation angle and the occlusion condition, it also includes: filtering out from the first intermediate collection all layout positions whose distance to the target to be monitored is greater than or equal to the safe layout distance to form a second intermediate collection.

[0008] Among them, the step of obtaining the distribution point distance of the target to be monitored within its imaging range according to the focal length and resolution of the camera at each distribution point position includes: obtaining the actual size of the target to be monitored and the imaging size of the target to be monitored imaged on the target surface of the camera; obtaining the distribution point distance between the camera and the target to be monitored using the actual size and the imaging size according to the camera pinhole imaging model; wherein the distribution point distance is proportional to the focal length of the camera and the actual size, and inversely proportional to the imaging size.

[0009] Among them, the step of selecting multiple point layout positions from all the point layout positions according to all the first distances, the observation angles and the occlusion conditions to form a first collection includes: obtaining the sum of a first product of the first distance and a first weight coefficient, a second product of the observation angle and a second weight coefficient, and a third product of the occlusion condition and a third weight coefficient, and using the sum as a comprehensive value of the point layout positions; selecting all point layout positions whose comprehensive value is less than or equal to a threshold from the second intermediate collection to form the first collection.

[0010] Among them, before the step of obtaining the first distance between the camera at each distribution point position and the target to be monitored, the observation angle and the occlusion condition, it also includes: obtaining the position coordinates and normal vector of the target to be monitored; obtaining the minimum bounding box according to the vertex coordinates of the target to be monitored in the three-dimensional model, and obtaining the center coordinates of the minimum bounding box.

[0011] Among them, the step of obtaining the first distance between the camera at each layout position and the target to be monitored includes: obtaining the first distance between the camera and the target to be monitored according to the position coordinates; the step of obtaining the observation angle between the camera at each layout position and the target to be monitored includes: obtaining the observation angle between the camera and the target to be monitored using the normal vector and the center coordinates.

[0012] Among them, the step of obtaining the occlusion situation between the camera at each point layout position and the target to be monitored includes: obtaining the coordinates of four corner points of the first plane where the normal vector is located in the minimum bounding box, wherein the four corner point coordinates are used to reflect the area of ​​the first plane; rasterizing the first plane to divide the first plane into multiple units, wherein the first plane is the actual observation surface of the camera for the target to be monitored; performing intersection detection from the point layout position to each of the units to obtain the occlusion situation between the camera at the point layout position and the target to be monitored.

[0013] Among them, the step of filtering out the optimal point distribution position from the first collection based on all the first spatial ranges includes: obtaining the difference between each first spatial range and the second spatial range of the target to be monitored; and taking the point distribution position corresponding to the minimum value of the difference as the optimal point distribution position.

[0014] Among them, after the step of filtering out the optimal point distribution position from the first collection according to all the first spatial ranges, it also includes: outputting the location information of the optimal point distribution position; in response to receiving a manual inspection that the location information is incorrect, returning to the step of filtering out the optimal point distribution position from the first collection according to all the first spatial ranges.

[0015] To solve the above technical problems, another technical solution adopted in the present application is: to provide a camera deployment system, comprising a memory and a processor coupled to each other, wherein the memory stores program instructions, and the processor is used to execute the program instructions to implement the camera deployment method mentioned in any of the above embodiments.

[0016] In order to solve the above technical problems, another technical solution adopted in the present application is: providing a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to implement the camera deployment method mentioned in any of the above embodiments.

[0017] Different from the prior art, the beneficial effects of the present application are as follows: after obtaining the range of camera deployment and the target to be monitored in the three-dimensional model, the present application obtains the first distance, observation angle and occlusion between the camera and the target to be monitored at each deployment position, and selects multiple deployment positions from all deployment positions based on all first distances, observation angles and occlusion conditions to form a first collection, obtains the first spatial range of the target to be monitored covered by the camera at each deployment position in the first collection, and selects the optimal deployment position from the first collection based on all first spatial ranges. Through such a design method, the camera deployment positions can be reasonably planned, which not only ensures the best observation of the target to be monitored, but also makes the deployment positions more meet the application requirements of real scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0019] Figure 1 It is a flowchart of an implementation method of the camera deployment method of the present application;

[0020] Figure 2 yes Figure 1 A schematic diagram of a process flow of an implementation method before step S2;

[0021] Figure 3 yes Figure 2 A schematic flow chart of an implementation method corresponding to step S10;

[0022] Figure 4 yes Figure 1 A schematic flow chart of an implementation method corresponding to step S2 in FIG.

[0023] Figure 5 yes Figure 1 A schematic flow chart of an implementation method corresponding to step S3;

[0024] Figure 6 yes Figure 1 A schematic diagram of a flow chart of an implementation method before step S2;

[0025] Figure 7 yes Figure 1 A schematic diagram of a flow chart of an implementation method corresponding to step S2;

[0026] Figure 8 yes Figure 1 A schematic diagram of a flow chart of an implementation method after step S3;

[0027] Fig. 9 It is a schematic diagram of the framework of an implementation method of the camera deployment system of the present application;

[0028] Fig.10 It is a structural schematic diagram of an implementation method of the camera deployment system of the present application;

[0029] Fig.11 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

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

[0031] See also Figure 1 , Figure 1 It is a flow chart of an implementation method of the camera deployment method of the present application.

[0032] Specifically, the above method includes:

[0033] S1: Obtain the deployable range of the camera and the target to be monitored in the 3D model.

[0034] Specifically, in this embodiment, the point-distributable range includes multiple point-distributable positions, and each point-distributable position is provided with a corresponding camera. In this embodiment, before step S1, a three-dimensional model of the scene is first reconstructed by tilt photography, laser scanning, etc., and imported into a rendering engine. The rendering engine can be OSG or Unity3d, etc., and this application does not limit this. Specifically, the point-distributable range P_threshold (X) of the camera is manually marked in the above three-dimensional model by drawing lines or geometric bodies. i Y i Z i ), where i = (1...n) is the camera's deployable area number. It is necessary to ensure that the camera deployment position P_cam is within the planned deployable range, that is:

[0035] Wherein, ii=(1...N) is the serial number of the camera.

[0036] In addition, in this embodiment, before or after step S1, the type of camera and the corresponding camera parameters can also be obtained. Specifically, the type of the camera can be at least one of a ball camera, a gun camera, and a dual-light pan / tilt camera. Specifically, one point location can correspond to one type of camera. Of course, one point location can also correspond to multiple types of cameras, which is not limited in this application. In this embodiment, the camera parameters include the focal length of the camera, the resolution of the camera, and the field of view.

[0037] S2: Obtain the first distance, observation angle and occlusion condition between the camera of each layout position and the monitored target, and select multiple layout positions from all layout positions according to all the first distances, observation angles and occlusion conditions to form a first collection.

[0038] Specifically, in this embodiment, please refer to Figure 2 , Figure 2 yes Figure 1 Schematic diagram of a flow chart of an implementation method before step S2. Specifically, before step S2, it includes:

[0039] S10: Obtain the point distance of the target to be monitored within its imaging range according to the focal length and resolution of the camera at each point location.

[0040] Specifically, in this embodiment, please refer to Figure 3 , Figure 3 yes Figure 2 Schematic diagram of a flow chart of an implementation method corresponding to step S10 in FIG. Specifically, step S10 includes:

[0041] S20: Obtaining the actual size of the target to be monitored and the image size of the target to be monitored when imaged on the camera target surface.

[0042] Specifically, taking the substation scene as an example, the target to be monitored can be a meter. Specifically, the actual size of the above meter is H*W (in mm), where H is the height of the target and W is the width of the target. To ensure that the meter can be detected and identified, the image size of the above meter on the camera target surface needs to be h_pix*w_pix (in pixels), where h_pix is ​​the height of the meter on the camera target surface and w_pix is ​​the width of the meter on the target surface.

[0043] S21: According to the camera pinhole imaging model, the actual size and the imaging size are used to obtain the distribution distance between the camera and the target to be monitored.

[0044] Specifically, the point distance is proportional to the focal length and actual size of the camera, and inversely proportional to the imaging size. According to the camera pinhole imaging model, we can get:

[0045]

[0046] Where target_mm is the actual size of the target to be monitored, target_pix is ​​the image size of the target to be monitored on the camera target surface, dis is the straight-line distance from the target to be monitored to the camera, and f_cam is the focal length of the camera. Specifically, the focal length of the camera can be calculated from the camera's field of view and the camera's resolution. Specifically, the camera's resolution is resolution_cam (resolution_h j resolution_v j ), where resolution_h j is the horizontal resolution, resolution_v j is the vertical resolution.

[0047] S11: Obtain a maximum point distance from all point distances, and select from the available point range all point locations whose distances to the target to be monitored are less than or equal to the maximum point distance to form a first intermediate collection.

[0048] Specifically, considering the impact of the target to be detected on the camera placement position, the distance between the camera and the target to be monitored usually needs to meet the detection conditions of the target to be monitored. Taking the substation scene as an example, the camera is usually used to detect and identify various meters in the scene, such as damage detection, liquid level detection, pointer dial degree recognition, etc. These functions have certain requirements for the placement distance between the camera and the above meters. According to the above camera pinhole imaging model, the maximum placement distance between the camera and the target to be monitored is:

[0049]

[0050] Among them, H is the height of the target, W is the width of the target, h_pix is ​​the height of the meter imaged on the camera target surface, w_pix is ​​the width of the meter imaged on the target surface, and dis max is the straight-line distance from the target to be monitored to the camera, and f_cam is the focal length of the camera.

[0051] Specifically, the point distance dis_cam between the camera and the target to be monitored needs to be less than or equal to the maximum distance requirement, that is: dis_cam≤dis max The camera layout obtained by this design method better meets the application requirements of real scenes and improves the accuracy of camera layout planning.

[0052] Specifically, in this embodiment, before step S2, it also includes: filtering out from the first intermediate collection all the layout locations whose distance to the target to be monitored is greater than or equal to the safe layout distance to form a second intermediate collection.

[0053] Specifically, in this embodiment, according to the requirements for camera layout safety in different scenarios and in combination with national standards and industry specifications, if the target to be monitored is a live device, the layout distance between the camera and the target to be monitored needs to be guaranteed to be greater than or equal to the safe layout distance dis_threshold, that is: dis_cam ≥ dis_threshold. Specifically, after step S11, it is necessary to filter out all layout locations whose distance dis_cam from the target to be monitored is greater than or equal to the above-mentioned safe layout distance dis_threshold from the first intermediate collection to form a second intermediate collection. The camera layout location obtained by this design method is more reasonable and meets safety requirements, which not only greatly improves the safety of camera monitoring, but also improves the accuracy of camera layout location planning.

[0054] Specifically, in this embodiment, please refer to Figure 4 , Figure 4 yes Figure 1 Schematic diagram of a flow chart of an implementation method corresponding to step S2 in FIG. Specifically, step S2 includes:

[0055] S30: Obtain the sum of the first product of the first distance and the first weight coefficient, the second product of the viewing angle and the second weight coefficient, and the third product of the occlusion condition and the third weight coefficient, and use the sum as the comprehensive value of the point layout position.

[0056]

[0057] Among them, N is the comprehensive value of the point location, α is the first weight coefficient, β is the second weight coefficient, γ is the third weight coefficient, dis is the first distance, angle is the observation angle, For occlusion situation.

[0058] S31: Filter out all the distribution point locations whose comprehensive values ​​are less than or equal to the threshold from the second intermediate collection to form a first collection.

[0059] Specifically, when the comprehensive value N is less than or equal to the threshold, it means that the first distance, observation angle and occlusion of the point location are optimal, thereby ensuring the best observation of the monitored target while reasonably distributing the cameras. Specifically, the calculation of the first distance, observation angle and occlusion of the point location will be described in detail below.

[0060] S3: Obtain a first spatial range of the target to be monitored covered by the camera at each layout position in the first collection, and select an optimal layout position from the first collection according to all the first spatial ranges.

[0061] Specifically, in this embodiment, please refer to Figure 5 , Figure 5 yes Figure 1 Schematic diagram of a flow chart of an implementation method corresponding to step S3 in FIG. Specifically, step S3 includes:

[0062] S40: Obtain a difference between each first spatial range and a second spatial range of the target to be monitored.

[0063] S41: The point distribution position corresponding to the minimum value in the difference is taken as the optimal point distribution position.

[0064] Specifically, in this embodiment, a constrained optimization solver can be constructed to solve the optimal camera point location. Specifically, the objective function of the optimization solver is to minimize the difference between the first spatial range and the second spatial range of the target to be monitored, and the point location that satisfies the objective function is taken as the optimal point location. Specifically, the objective function is:

[0065]

[0066] in, The first spatial range of the target to be monitored covered by the camera at each deployment location, It is the second spatial range of the target to be monitored.

[0067] Through this design method, the camera locations can be reasonably planned, which not only ensures the best observation of the monitored target, but also makes the camera locations more in line with the application requirements of real scenes.

[0068] In addition, in this embodiment, see Figure 6 , Figure 6 yes Figure 1 Schematic diagram of a flow chart of an implementation method before step S2. Specifically, before step S2, it also includes:

[0069] S50: Obtain the position coordinates and normal vector of the target to be monitored.

[0070] Specifically, the target to be monitored is marked in the three-dimensional model by means of mouse interaction, and the position coordinates P_target (X i Y i Z i ) and the normal vector

[0071] S51: Obtain a minimum bounding box according to the vertex coordinates of the target to be monitored in the three-dimensional model, and obtain the center coordinates of the minimum bounding box.

[0072] Specifically, the minimum bounding box (OBB bounding box) is calculated using the vertex coordinates of the target to be monitored in the three-dimensional model, and the maximum and minimum values ​​of the minimum bounding box coordinates are saved, namely: In addition, in this embodiment, the center coordinates of the minimum bounding box are box_center j (x i y i z i ), where j = (1...m) is the serial number of the target to be monitored.

[0073] Specifically, in this embodiment, please continue to refer to Figure 1 , the step of obtaining the first distance between the camera at each layout position and the target to be monitored in step S2 includes: obtaining the first distance between the camera and the target to be monitored according to the position coordinates. In addition, in this embodiment, the step of obtaining the observation angle between the camera at each layout position and the target to be monitored in step S2 includes: obtaining the observation angle between the camera and the target to be monitored using the normal vector and the center coordinates.

[0074] Specifically, the first distance dis between the camera and the target to be monitored can be calculated according to the position coordinates of the target to be monitored, and the observation angle angle between the camera optical axis and the target to be monitored can be calculated according to the normal vector and the center coordinates of the minimum bounding box. To ensure the imaging effect, the camera should be as close to the target to be monitored as possible within the camera depth of field, that is, the first distance dis should be as small as possible, and in order to avoid mirror reflection and perspective projection deformation, the observation angle angle between the camera optical axis and the target to be monitored should be as small as possible, and it is best to observe the target to be monitored directly, that is:

[0075]

[0076]

[0077] Wherein, j=(1...m) is the serial number of the target to be monitored, and ii=(1...N) is the serial number of the camera.

[0078] Specifically, in this embodiment, please refer to Figure 7 , Figure 7 yes Figure 1 Specifically, the step of obtaining the occlusion situation between the camera at each point location and the target to be monitored in step S2 includes:

[0079] S60: Obtain the coordinates of four corner points of the first plane where the normal vector is located in the minimum bounding box.

[0080] Specifically, in this embodiment, the eight corner point coordinates of the minimum bounding box are calculated based on the maximum and minimum values ​​of the coordinates of the minimum bounding box in the three coordinate axis directions, and the four corner point coordinates of the first plane where the normal vector is located are screened out in combination with the normal vector. Specifically, the above four corner point coordinates are used to reflect the area of ​​the first plane.

[0081] S61: performing a rasterization process on the first plane to divide the first plane into a plurality of units.

[0082] Specifically, the first plane is the actual observation plane of the camera on the target to be monitored.

[0083] S62: Perform intersection detection from the point location to each unit to obtain the occlusion situation between the camera at the point location and the target to be monitored.

[0084] Specifically, in this embodiment, intersection detection is performed from the camera's point location to each unit after rasterization on the first plane. If there is an intersection, it means that the unit is blocked, and the blockage ratio is calculated. In order to make the camera observe the target to be monitored best, the camera's point location needs to satisfy the minimum overall blockage ratio, that is:

[0085] Among them, shelter_ratio j is the occlusion ratio.

[0086] Through this design method, the camera locations can be reasonably planned, which not only ensures the best observation of the monitored target, but also makes the camera locations more in line with the application requirements of real scenes.

[0087] Specifically, in this embodiment, please refer to Figure 8 , Figure 8 yes Figure 1 Specifically, after step S3, the method further includes:

[0088] S70: Output the location information of the optimal point distribution location.

[0089] Specifically, in this embodiment, after step S3, the spatial position and observation angle of the optimal point arrangement position screened out in step S3 are output.

[0090] S71: Determine whether the received manual inspection position information is incorrect.

[0091] Specifically, in this embodiment, the spatial position and observation angle of the optimal point layout position output in step S70 are checked manually to see whether they are correct. The processor obtains the result of the above check and enters the step of determining whether the manual check position information received is incorrect.

[0092] S72: If yes, return to the step of selecting the optimal point distribution position from the first collection according to all the first spatial ranges.

[0093] Specifically, if the received manually inspected position information is incorrect, the process returns to step S3 to continue selecting the optimal point placement location from the first collection.

[0094] S73: Otherwise, end.

[0095] Specifically, if no manual inspection is received and the position information is incorrect, the process ends and the optimal point layout position can be output or saved, etc. This application does not limit this.

[0096] Through this design method, the optimal point placement positions screened out can be verified to avoid incorrect point placement positions, thereby improving the accuracy of camera point placement position selection.

[0097] See also Fig. 9 , Fig. 9 Schematic diagram of the framework of an embodiment of the camera deployment system of the present application. The camera deployment system specifically includes:

[0098] The acquisition module 10 is used to acquire the deployable range of the camera and the target to be monitored in the three-dimensional model; wherein the deployable range includes multiple deployment locations, and each deployment location is provided with a corresponding camera.

[0099] The processing module 12 is coupled to the acquisition module 10 and is used to obtain the first distance, observation angle and occlusion between the camera at each layout position and the target to be monitored. Of course, the processing module 12 is also used to obtain the first spatial range of the target to be monitored covered by the camera at each layout position in the first collection.

[0100] The screening module 14 is coupled to the processing module 12 and is used to screen out multiple point locations from all the point locations according to all the first distances, observation angles and occlusion conditions to form a first collection. Of course, the screening module 14 is also used to screen out the optimal point location from the first collection according to all the first spatial ranges.

[0101] See also Fig.10 , Fig.10 1 is a schematic diagram of the structure of an embodiment of the camera deployment system of the present application. The camera deployment system includes a processor 100 and a memory 102 coupled to each other. Specifically, in this embodiment, the processor 100 and the memory 102 cooperate with each other to implement the camera deployment method mentioned in any of the above embodiments.

[0102] Specifically, the processor 100 may also be referred to as a CPU (Central Processing Unit). The processor 100 may be an integrated circuit chip having the ability to process signals. The processor 100 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. In addition, the processor 100 may be implemented by a plurality of integrated circuit chips.

[0103] See also Fig.11 , Fig.11 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. The computer-readable storage medium 20 stores a computer program 200, which can be read by a computer, and the computer program 200 can be executed by a processor to implement the camera deployment method mentioned in any of the above embodiments. Among them, the computer program 200 can be stored in the above-mentioned computer-readable storage medium 20 in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The computer-readable storage medium 20 with a storage function can be a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, RandomAccess Memory), a disk or an optical disk, etc., which can store program codes, or a terminal device such as a computer, a server, a mobile phone, or a tablet.

[0104] In summary, different from the prior art, after obtaining the range of cameras that can be deployed in the three-dimensional model and the target to be monitored, the present application obtains the first distance, observation angle and occlusion between the camera and the target to be monitored at each deployment position, and selects multiple deployment positions from all deployment positions based on all first distances, observation angles and occlusion conditions to form a first collection, obtains the first spatial range of the target to be monitored covered by the camera at each deployment position in the first collection, and selects the optimal deployment position from the first collection based on all first spatial ranges. Through such a design method, the camera deployment positions can be reasonably planned, which not only ensures the best observation of the target to be monitored, but also makes the deployment positions more meet the application requirements of real scenes.

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

Claims

1. A camera deployment method, characterized in that: include: Obtaining a range of cameras that can be deployed and a target to be monitored in a three-dimensional model; wherein the range of cameras that can be deployed includes multiple deployment locations, and each deployment location is provided with a corresponding camera; Obtaining a first distance, an observation angle, and an occlusion condition between a camera at each layout position and the target to be monitored, and selecting a plurality of layout positions from all the layout positions according to all the first distances, the observation angles, and the occlusion conditions to form a first collection; Obtaining a first spatial range of the target to be monitored covered by a camera at each of the point locations in the first collection, and selecting an optimal point location from the first collection according to all of the first spatial ranges; Wherein, before the step of obtaining the first distance, observation angle and occlusion condition between the camera at each deployment point position and the target to be monitored, the following steps are included: Obtaining the position coordinates and normal vector of the target to be monitored; Obtaining a minimum bounding box according to the vertex coordinates of the target to be monitored in the three-dimensional model, and obtaining the center coordinates of the minimum bounding box; The step of obtaining a first distance, an observation angle, and an occlusion condition between the camera at each deployment point and the target to be monitored includes: Obtaining a first distance between the camera and the target to be monitored according to the position coordinates; Obtaining an observation angle between the camera and the target to be monitored using the normal vector and the center coordinates; Obtaining coordinates of four corner points of the first plane where the normal vector is located in the minimum bounding box, wherein the coordinates of the four corner points are used to reflect the area of ​​the first plane; Performing a rasterization process on the first plane to divide the first plane into a plurality of units, wherein the first plane is an actual observation plane of the camera for the target to be monitored; An intersection detection is performed from the point layout position to each of the units to obtain the occlusion situation between the camera at the point layout position and the target to be monitored.

2. The camera arrangement method according to claim 1, characterized in that: Before the step of obtaining the first distance, observation angle and occlusion condition between the camera at each deployment point position and the target to be monitored, the method includes: Obtaining the point distance of the target to be monitored within its imaging range according to the focal length and resolution of the camera at each point location; The maximum point distribution distance is obtained from all the point distribution distances, and all point distribution positions whose distances to the target to be monitored are less than or equal to the maximum point distribution distance are screened out from the possible point distribution range to form a first intermediate collection.

3. The camera arrangement method according to claim 2, characterized in that: Before the step of obtaining the first distance, observation angle and shielding condition between the camera at each point position and the target to be monitored, the method further includes: All the point locations whose distances to the target to be monitored are greater than or equal to the safe point distance are screened out from the first intermediate collection to form a second intermediate collection.

4. The camera arrangement method according to claim 2, characterized in that: The step of obtaining the point distance of the target to be monitored within its imaging range according to the focal length and resolution of the camera at each point location comprises: Obtaining the actual size of the target to be monitored and the image size of the target to be monitored when imaged on the camera target surface; The point distribution distance between the camera and the target to be monitored is obtained using the actual size and the imaging size according to the camera pinhole imaging model; wherein the point distribution distance is proportional to the focal length of the camera and the actual size, and inversely proportional to the imaging size.

5. The camera arrangement method according to claim 1, characterized in that: The step of selecting a plurality of point locations from all the point locations according to all the first distances, the observation angles and the occlusion conditions to form a first collection includes: Obtaining a sum of a first product of the first distance and a first weight coefficient, a second product of the observation angle and a second weight coefficient, and a third product of the occlusion condition and a third weight coefficient, and using the sum as a comprehensive value of the point layout position; All the distribution locations where the comprehensive value is less than or equal to the threshold are filtered out from the second intermediate collection to form the first collection.

6. The camera arrangement method according to claim 1, characterized in that: The step of selecting the optimal point distribution position from the first collection according to all the first spatial ranges includes: Obtaining a difference between each first spatial range and a second spatial range of the target to be monitored; The point distribution position corresponding to the minimum value of the difference is taken as the optimal point distribution position.

7. The camera arrangement method according to claim 1, characterized in that: After the step of selecting the optimal point distribution position from the first collection according to all the first spatial ranges, the method further includes: Outputting the location information of the optimal point distribution location; In response to receiving a manual inspection that the position information is incorrect, returning to the step of selecting the optimal point layout location from the first collection according to all of the first spatial ranges.

8. A camera deployment system, characterized in that: It comprises a memory and a processor coupled to each other, wherein the memory stores program instructions, and the processor is used to execute the program instructions to implement the camera deployment method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to implement the camera deployment method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Substation camera point layout optimization analysis system based on 3D gaussian splatter model

    CN122675955A