A method, device and storage medium for visualizing corridors

By dividing the sight blocks in the curved corridor and determining the center of the fan ring area, the problem of monitoring blind spots is solved, and the corridor is fully covered and efficient monitoring points are achieved, which improves security and fault tolerance.

CN117082363BActive Publication Date: 2024-11-26JIANGYIN ARCHITECTURAL DESIGN RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311064771.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-23
Publication Date
2024-11-26
Estimated Expiration
2043-08-23

AI Technical Summary

Technical Problem

The prior art is difficult to effectively arrange surveillance cameras in curved corridors, resulting in blind spots and incomplete coverage, making it difficult to realize visual monitoring of corridors.

Method used

By establishing a spatial rectangular coordinate system, divide the curve surface at the bottom of the corridor into line-of-view blocks of N rows and M columns, determine the center of the fan ring area as the camera installation point, and perform different methods according to the type of fan ring area (odd or even number). Planning to ensure that all line-of-view blocks are covered and monitoring blind spots are reduced.

Benefits of technology

Full coverage of curved corridors has been achieved, monitoring point distribution efficiency has been improved, monitoring blind spots have been reduced, safety hazards have been discovered in a timely manner, and fault tolerance has been improved through alarm signals and filling mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117082363B_ABST
    Figure CN117082363B_ABST
Patent Text Reader

Abstract

The present application relates to the field of architectural visualization monitoring layout, and in particular to a method, device and storage medium for corridor visualization construction, wherein the method comprises: establishing a spatial rectangular coordinate system, and dividing the bottom curved surface corresponding to the corridor into sight blocks of N rows and M columns; sequentially determining a number of fan ring areas on the bottom curved surface corresponding to the corridor for covering all sight blocks; wherein the arc convex parts of the fan ring areas arranged as odd numbers are all oriented towards the end of the corridor, and the arc convex parts of the fan ring areas arranged as even numbers are all oriented towards the starting end of the corridor; obtaining the point on the top curved surface of the corridor corresponding to the center point of the fan ring area in the vertical direction according to the spatial rectangular coordinate system as the installation point, and taking the center line direction of the fan ring area as the orientation of the corresponding camera when it is installed; establishing an association between the installation point and the corresponding center line direction, and storing them in a database, which is helpful to realize the visualization of the curved corridor and timely discover possible safety hazards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of building visualization monitoring layout, and in particular to a method, device and storage medium for corridor visualization construction. Background Art

[0002] With the strengthening of public safety awareness, the deployment of surveillance cameras in public places such as roads and streets has become an important security measure.

[0003] At present, most surveillance cameras are planned and deployed before installation. For example, the patent application document with publication number CN106385569A discloses a method for deploying video cameras. The solution is to first establish a terrain model library of various road places based on field surveys, and then establish a deployment model corresponding to each terrain model in the terrain model library and send it to the user, such as a street deployment model, a square deployment model, an intersection deployment model, etc.; in addition, considering that there will be obstacles such as self-occlusion and mutual occlusion in an open environment in actual applications, the patent application document with publication number CN113163175A also discloses a surveillance camera layout method. The solution is to construct an objective function based on the obtained obstacle position, obstacle height, candidate positions of several cameras and the coverage radius of the camera, and by constraining the camera coverage area and the monitoring angle, solve the model, and obtain the optimal surveillance camera layout plan, so as to carry out monitoring layout according to the plan.

[0004] In real life, in addition to open areas such as streets, intersections, and indoor spaces that need to be monitored, special areas such as curved corridors, which have many curved parts that constitute blind spots for monitoring, also need appropriately arranged surveillance cameras to achieve corridor visualization and timely discover possible safety hazards. However, most of the surveillance camera layout solutions in related technologies are for open areas and are difficult to be directly applied to curved corridors. Therefore, a solution for the visualization of curved corridors is urgently needed. Summary of the invention

[0005] In order to facilitate visualization of curved corridors and timely discover possible safety hazards, the present application provides a method, device and storage medium for constructing corridor visualization.

[0006] In a first aspect, the present application provides a method for visualizing corridors, using the following technical solutions:

[0007] A method for constructing corridor visualization, the method is based on a plurality of camera devices with set monitoring angles; when the camera devices are installed on a top curved surface corresponding to a corridor with a specific height, the clear viewing angle range thereof and the ground intersection area where the bottom curved surface corresponding to the corridor is located form a fan ring area; the method comprises:

[0008] A spatial rectangular coordinate system is established, and the bottom curved surface corresponding to the corridor is divided into sight blocks of N rows and M columns; wherein N is greater than or equal to 3 and is an odd number;

[0009] Based on the sight blocks of N rows and M columns, a plurality of sector ring areas for covering all sight blocks are sequentially determined on the bottom curved surface corresponding to the corridor; wherein the convex parts of the arcs of the sector ring areas with odd numbers are all oriented toward the end of the corridor, and the convex parts of the arcs of the sector ring areas with even numbers are all oriented toward the starting end of the corridor;

[0010] According to the spatial rectangular coordinate system, the point on the top curved surface of the corridor corresponding to the center of the circle of the sector ring area in the vertical direction is obtained as the installation point, and the center line direction of the sector ring area is used as the orientation of the corresponding camera when it is installed;

[0011] The installation points are associated with the corresponding centerline directions and stored in a database.

[0012] In a specific possible implementation scheme, in the step of establishing a spatial rectangular coordinate system and dividing the bottom curved surface corresponding to the corridor into sight blocks of N rows and M columns:

[0013] The sight block is formed by dividing the bottom curve surface corresponding to the corridor by N+1 horizontal curves and M+1 longitudinal lines; the starting end of the bottom curve surface is the first longitudinal line, and the midpoint of the first longitudinal line is used as the starting point to make its perpendicular bisector in the horizontal direction as the transverse line, and the length of each divided sight block in the length direction of the transverse line is the same; each longitudinal line has N+1 dividing points that divide it into N segments, and each of the N+1 horizontal curves passes through the corresponding dividing points on each longitudinal line.

[0014] In a specific possible implementation, in the step of determining a plurality of fan ring areas for covering all the sight blocks in sequence on the bottom curved surface corresponding to the corridor based on the sight blocks of N rows and M columns:

[0015] The sector ring areas with odd order are determined as follows:

[0016] First sector ring area: Plan a number of points evenly distributed in the sight block in the middle of the first column, traverse these points and find a point as the center O1 of the first sector ring area;

[0017] The Eth sector ring area: plan a number of evenly distributed points in the middle sight block in the next sight block column of the sight block column passed by the arc line outside the E-2th sector ring area, traverse these points to find a point as the center OE of the Eth sector ring area;

[0018] The sector ring areas with even order are determined as follows:

[0019] Second sector ring area: plan a number of evenly distributed points in the area where the first sector ring area overlaps with the bottom curved surface, traverse these points to find a point as the center O2 of the second sector ring area, so that the second sector ring area covers the uncovered area on the bottom curved surface before the first sector ring area;

[0020] The Fth sector ring area: plan a number of points evenly distributed in the area where the F-1th sector ring area coincides with the bottom curved surface, traverse these points to find a point as the center OF of the Fth sector ring area, so that the Fth sector ring area covers the uncovered area on the bottom curved surface between the F-1th sector ring area and the F-3th sector ring area;

[0021] In the above, E is greater than or equal to 3 and is an odd number, and F is greater than or equal to 4 and is an even number.

[0022] In a specific feasible implementation scheme, the determined odd-numbered fan-ring areas satisfy the following conditions: the center line of the fan-ring area is parallel to the tangent line of the edge of the column where the center of the fan-ring area is located, and compared with the fan-ring areas with other points planned in the same line of sight block as the center, the area of ​​the overlap between the fan-ring area and the bottom curved surface is the largest.

[0023] In a specific implementation scheme, when determining the sector ring area with an even order:

[0024] First, a number of evenly distributed points are planned on the line segment of the center line of the previous odd-numbered fan ring area on the bottom curve surface, and then these points are traversed to find a point that meets the requirements as the center of the fan ring area with an even number, so as to determine the fan ring area with an even number;

[0025] If a point that meets the requirements cannot be found on the center line of the last odd-numbered fan ring area, a number of points that are evenly distributed and not on the center line of the last odd-numbered fan ring area are planned in the area where the last odd-numbered fan ring area overlaps with the bottom curved surface, and then these points are traversed to find a point that meets the requirements as the center of the fan ring area with an even number, thereby determining the fan ring area with an even number;

[0026] If the center of the sector ring area with an even number that meets the requirement is not found in the end, an alarm signal is output.

[0027] In a specific possible implementation scheme, when searching for the center of the circle of the even-numbered circle of the previous odd-numbered circle of the circle and when searching for the center of the circle of the even-numbered circle of the previous odd-numbered circle of the circle in the region where the odd-numbered circle of the previous odd-numbered circle coincides with the bottom curved surface, the following process is included:

[0028] A virtual sector ring area is constructed with the planned point as the center of the circle and it is determined whether the virtual sector ring area meets the requirements. If the requirements are met, the virtual sector ring area is used as the final sector ring area with an even number in the sorting order, wherein when constructing the virtual sector ring area, the center line of the virtual sector ring area is parallel to the center line of the previous sector ring area with an odd number in the sorting order;

[0029] If all virtual sector ring areas constructed with the planned point as the center do not meet the requirements, all virtual sector ring areas constructed with the planned point as the center are sequentially operated as follows:

[0030] The initial state is that the center line of the current virtual sector ring area is parallel to the center line of the previous sector ring area with an odd number. The current virtual sector ring area is first rotated one step at a time in the clockwise direction until it rotates P degrees, and then rotated one step at a time in the counterclockwise direction until it rotates -P degrees, so as to find the sector ring area with an even number that meets the requirements.

[0031] In a specific feasible implementation scheme, if multiple points that meet the requirements of the center of the fan ring area with an even order are found, then a point is randomly selected from them as the center of the fan ring area with an even order, or the point closest to the center of the previous fan ring area with an odd order is found as the center of the fan ring area with an even order.

[0032] In a specific feasible implementation scheme, each time after the fan ring area with an even number is determined, the area of ​​the remaining area of ​​the bottom curve surface not covered by all the determined fan ring areas is calculated and the area of ​​the remaining area is compared with a threshold value. If the area of ​​the remaining area is less than or equal to the threshold value, a corner area filling mechanism is triggered to find at least one point in the previous fan ring area with an odd number, so that at least one fan ring area with the at least one point as the center covers the remaining area.

[0033] In a second aspect, the present application provides a device for visually constructing a corridor, which adopts the following technical solution:

[0034] A device for corridor visualization construction includes a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the method as described above.

[0035] In a third aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:

[0036] A computer-readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the method as described above.

[0037] In summary, the present application includes at least one of the following beneficial technical effects:

[0038] 1. The bottom curved surface corresponding to the corridor is divided into several sight blocks. Based on the fan ring area where the clear viewing angle range of the camera device intersects with the ground where the bottom curved surface corresponding to the corridor is located, several points are determined in the sight block as the center of the fan ring area to achieve the purpose of covering all sight blocks by the fan ring area, thereby determining the installation point and installation direction of the camera device. Compared with the traditional solution of arranging monitoring devices in open areas, this application helps to achieve visual coverage of curved corridors, thereby timely discovering possible safety hazards;

[0039] 2. By dividing the sector ring area into sector ring areas with odd numbers and sector ring areas with even numbers, and then carrying out specific planning of the sector ring areas in sequence in different ways, it is helpful to achieve full coverage of the curved corridor without the need for messy trial and error, which helps to improve the efficiency of point deployment;

[0040] 3. The odd-numbered sector ring areas are determined based on the order of the sight block columns and the size of the area intersecting with the bottom curved surface. The even-numbered sector ring areas are determined based on the previous odd-numbered sector ring area and the uncovered area on the bottom curved surface before coverage, which further improves the efficiency of the point design and helps to reduce the monitoring blind spot area to maximize the utilization of the monitoring device.

[0041] 4. If the center of the sector ring area with an even number of sorting that meets the requirements is not found, an alarm signal will be output to remind the designer to perform manual proofreading and inspection, thereby improving the fault tolerance rate;

[0042] 5. After each even-numbered sector ring area is determined, the area of ​​the remaining area is calculated and compared with a threshold. If the area of ​​the remaining area is less than or equal to the threshold, a corner area filling mechanism is triggered to find at least one sector ring area in the previous odd-numbered sector ring area to cover the remaining area. There is no need to search for the sector ring area according to the previous rules. This can avoid the situation where the installation points of the last few cameras fall outside the corridor or the next installation point cannot be found due to insufficient remaining area, thereby further improving the fault tolerance rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a flowchart of the method for constructing corridor visualization according to an embodiment of the present application.

[0044] Figure 2 It is a schematic diagram of an embodiment of the present application for reflecting the structure of the curved plane at the bottom of the corridor.

[0045] Figure 3 It is a schematic diagram of the structure of the intersection area of ​​the ground where the viewing angle range of the camera device after installation and the bottom curved surface corresponding to the corridor are located in an embodiment of the present application.

[0046] Figure 4 It is a schematic diagram for illustrating the structure of the fan ring area according to an embodiment of the present application.

[0047] Figure 5 It is a schematic diagram for reflecting the positional relationship between the first sector ring area and the second sector ring area in an embodiment of the present application.

[0048] Figure 6 It is a schematic diagram for reflecting the positional relationship between the first sector ring area and the third sector ring area in an embodiment of the present application.

[0049] Figure 7 It is a schematic diagram for reflecting the positional relationship between the fourth sector ring area, the first sector ring area and the third sector ring area according to an embodiment of the present application.

[0050] Figure 8 It is a schematic diagram of an embodiment of the present application for reflecting the positional relationship between the final sector ring area and the previous sector ring area with an odd order. DETAILED DESCRIPTION

[0051] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0052] An embodiment of the present application discloses a method for visualizing corridors. Figure 1 , the method comprising:

[0053] S10, establishing a spatial rectangular coordinate system, and dividing the bottom curved surface corresponding to the corridor into sight blocks of N rows and M columns.

[0054] Where N is greater than or equal to 3 and is an odd number. Figure 2 In this embodiment, the curved corridor refers to a corridor with a curved walking path. Therefore, the top and bottom of the corridor can be regarded as a curved plane. Hereinafter, the curved plane at the top of the corridor is referred to as the top curved plane, and the curved plane at the bottom of the corridor is referred to as the bottom curved plane.

[0055] In addition, combined Figure 2, the sight blocks of N rows and M columns are formed by dividing the bottom curve surface by N+1 horizontal curves and M+1 vertical lines; the starting end of the bottom curve surface of the corridor is the first vertical line, and the midpoint of the first vertical line is used as the starting point to make its perpendicular bisector in the horizontal horizontal direction, i.e., the X-axis direction, as the horizontal line, and the length of each sight block divided in the length direction of the horizontal line, i.e., in the X-axis direction, is the same; each vertical line has N+1 dividing points that divide it into N segments, and each of the N+1 horizontal curves passes through the corresponding dividing points on each vertical line, thereby, the bottom curve surface can be relatively evenly divided into sight blocks of N rows and M columns. Moreover, based on the established spatial rectangular coordinate system, a set of coordinate points of each sight block can be obtained.

[0056] S20, based on the sight blocks of N rows and M columns, a plurality of sector ring areas for covering all the sight blocks are determined in sequence on the bottom curve surface corresponding to the corridor.

[0057] It should be noted that the embodiments of the present application are based on several camera devices that have been set up with monitoring angles, that is, installed with depression angles. Specifically, the camera device is a monitoring camera with a 6mm lens, a monitoring angle of 10°, a theoretical coverage angle of 60°, and a theoretical coverage distance of 5m for clearly seeing a person's face. Figure 3 and Figure 4 Assuming that the camera device is installed on the top curved surface corresponding to a corridor with a certain height, the clear viewing angle range of the camera device, that is, the viewing angle range for seeing the face clearly, and the intersection area of ​​the ground where the bottom curved surface corresponding to the corridor is located are a ring area abcd.

[0058] S30, according to the spatial rectangular coordinate system, obtain the point on the top curved surface of the corridor corresponding to the center of the circle of the sector ring area in the vertical direction as the installation point, and use the center line direction of the sector ring area as the orientation of the corresponding camera when installing.

[0059] Combination Figure 3 and Figure 4 For example, if the center of the fan ring area abcd is determined to be O, then the point O' on the top curve surface of the corridor corresponding to the center O in the vertical direction, that is, along the Z-axis direction is used as the installation point. When the corresponding camera is installed, the component of the direction of its lens on the bottom curve surface of the corridor is in the length direction along the center line z1z2 of the fan ring area abcd.

[0060] S40, establishing an association between the installation point and the corresponding centerline direction, and storing the association in a database.

[0061] Specifically, the installation point data stored in the database are coordinate points, and the center line direction data stored in the database are a set of coordinate points. This makes it easy for construction personnel or installers to install the camera device according to the data stored in the database.

[0062] The following combination Figure 5-Figure 7 The determination of the odd-numbered sector ring areas and the even-numbered sector ring areas in S20 is specifically described as follows:

[0063] It should be noted that the convex parts of the arcs of the sector ring areas with odd numbers are all facing the end of the corridor, and the convex parts of the arcs of the sector ring areas with even numbers are all facing the starting end of the corridor.

[0064] The sector ring areas with odd order are determined as follows:

[0065] First sector ring area: Plan a number of points evenly distributed in the sight block in the middle of the first column, traverse these points and find a point as the center O1 of the first sector ring area;

[0066] The Eth sector ring area: plan a number of evenly distributed points in the middle sight block in the next sight block column of the sight block column passed by the arc line outside the E-2th sector ring area, traverse these points to find a point as the center OE of the Eth sector ring area;

[0067] Wherein, E is greater than or equal to 3, and E is an odd number; when determining the sector ring area with an odd number, the center line of the sector ring area is parallel to the tangent line of the edge of the column where the center of the sector ring area is located, and compared with the sector ring area with other points planned in the same line of sight block as the center, the area of ​​the overlap between the determined sector ring area and the bottom curved surface is the largest;

[0068] In this embodiment, the midpoints of the two vertical line segments on the two longitudinal lines of the line of sight block where the center of the fan ring area is located are connected as the approximate tangent line of the edge of the column where the center of the fan ring area is located, so that the center line of the fan ring area is parallel to the approximate tangent line, that is, the center line of the fan ring area is regarded as parallel to the tangent line of the edge of the column where the center of the fan ring area is located; in addition, when calculating the area of ​​the overlapped area between the fan ring area and the bottom curved surface, the shape of the overlapped area is first obtained based on the intersection of the fan ring area and the edge of the bottom curved surface, that is, an irregular figure is obtained, and then the area of ​​the irregular figure is calculated using the Monte Carlo algorithm, which is used as the area of ​​the overlapped area between the fan ring area and the bottom curved surface.

[0069] The even-numbered sector ring areas are determined as follows:

[0070] Second sector ring area: plan a number of evenly distributed points in the area where the first sector ring area coincides with the bottom curved surface, traverse these points to find a point as the center O2 of the second sector ring area, so that the second sector ring area covers the uncovered area on the bottom curved surface before the first sector ring area, that is, the second sector ring area covers the area between the first sector ring area and the first longitudinal line on the bottom curved surface;

[0071] The Fth fan ring area: plan a number of evenly distributed points in the area where the F-1th fan ring area coincides with the bottom curve surface, traverse these points to find a point as the center OF of the Fth fan ring area, so that the Fth fan ring area covers the area on the bottom curve surface between the F-1th fan ring area and the F-3th fan ring area; where F is greater than or equal to 4, and F is an even number.

[0072] The above steps are as follows when determining the sector ring area with an even order:

[0073] 1) First, plan a number of evenly distributed points on the line segment of the center line of the previous odd-numbered fan ring area on the bottom curve surface, and then traverse these points to find a point that meets the circle center requirement as the circle center of the fan ring area with an even number, so as to determine the fan ring area with an even number;

[0074] 2) If a point that meets the requirements cannot be found on the center line of the previous odd-numbered fan ring area, plan a number of evenly distributed points that are not on the center line of the previous odd-numbered fan ring area in the area where the previous odd-numbered fan ring area coincides with the bottom curve surface, and then traverse these points to find a point that meets the requirements as the center of the fan ring area with an even number, so as to determine the fan ring area with an even number;

[0075] 3) If the center of the sector ring area with an even number of sorting that meets the requirements is not found in the end, an alarm signal is output;

[0076] Among them, when searching for the center of the circle of the even-numbered sector ring area on the center line of the previous odd-numbered sector ring area in 1), and when searching for the center of the circle of the even-numbered sector ring area in the area where the previous odd-numbered sector ring area and the bottom curve surface coincide, both include the following processes:

[0077] 11) Constructing a virtual sector ring area with the planned point as the center of the circle in turn and judging whether the virtual sector ring area meets the coverage requirement. If the coverage requirement is met, the virtual sector ring area is used as the final sector ring area with an even number in the sorting order; wherein, when constructing the virtual sector ring area, the center line of the virtual sector ring area is parallel to the center line of the previous sector ring area with an odd number in the sorting order;

[0078] 12) If all virtual sector ring areas constructed with the planned point as the center in 11) do not meet the coverage requirements, all virtual sector ring areas constructed with the planned point as the center are operated in sequence as follows:

[0079] The state in which the center line of the current virtual sector ring area is parallel to the center line of the previous odd-numbered sector ring area is taken as the initial state, and the current virtual sector ring area is first rotated one step at a time in the clockwise direction until it rotates P degrees, and then rotated one step at a time in the counterclockwise direction until it rotates -P degrees, so as to find the even-numbered sector ring area that meets the above coverage requirements; wherein P is 60;

[0080] If multiple points that meet the requirements of the center of the fan ring area with an even order are found, a point is randomly selected from them as the center of the fan ring area with an even order, or the point closest to the center of the previous fan ring area with an odd order is found as the center of the fan ring area with an even order.

[0081] Combination Figure 8 In one embodiment, in order to avoid the situation where the installation points of the last several cameras fall outside the corridor or the next installation point cannot be found due to insufficient remaining area, each time the sector ring area with an even number is determined in S20, the area of ​​the remaining area of ​​the bottom curve surface not covered by all the determined sector ring areas is calculated, and the area of ​​the remaining area is compared with a threshold; if the area of ​​the remaining area is less than or equal to the threshold, a corner area filling mechanism is triggered to find at least one point in the previous sector ring area with an odd number, so that at least one sector ring area with the at least one point as the center covers the remaining area.

[0082] The threshold is set to be equal to the area of ​​a sector ring; the corner area filling mechanism includes:

[0083] Evenly plan several points in the last odd-numbered fan-ring area, traverse these points to find the point where the overlap area between the fan-ring area and the remaining area is the largest as the center of the final fan-ring area; if the overlap area between the final fan-ring area and the remaining area is smaller than the remaining area, it means that there is still an area that is not covered, and then continue to traverse the points planned in the last odd-numbered fan-ring area to find the next final fan-ring area; in this way, several fan-ring areas that completely cover the remaining area are found. Among them, when traversing several evenly planned points in the last odd-numbered fan-ring area, the virtual fan-ring areas constructed with each planned point as the center are all performed as follows:

[0084] The initial state is that the center line of the current virtual sector ring area is parallel to the center line of the previous odd-numbered sector ring area. In this state, it is first determined whether the current virtual sector ring area meets the requirements. If it does not meet the requirements, the current virtual sector ring area is first rotated one step at a time in the clockwise direction until it rotates P degrees, and then rotated one step at a time in the counterclockwise direction until it rotates -P degrees to find a sector ring area that meets the current coverage requirements.

[0085] Based on the same inventive concept described above, an embodiment of the present application further discloses a device for visually constructing a corridor. The device includes a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the method for visually constructing a corridor as provided in the method embodiment described above.

[0086] Based on the same inventive concept mentioned above, an embodiment of the present application also discloses a computer-readable storage medium, which stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set can be loaded and executed by a processor to implement a method for corridor visualization construction as provided in the above method embodiment.

[0087] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0088] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium. The storage medium mentioned above may include, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0089] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for visualizing a corridor, characterized in that: The method is based on a plurality of camera devices with set monitoring angles; when the camera devices are installed on the top curved surface corresponding to a corridor with a specific height, the intersection area of ​​the clear viewing angle range and the ground where the bottom curved surface corresponding to the corridor is located is a fan ring area; the method comprises: A spatial rectangular coordinate system is established, and the bottom curved surface corresponding to the corridor is divided into sight blocks of N rows and M columns; wherein N is greater than or equal to 3 and is an odd number; Based on the sight blocks of N rows and M columns, a plurality of sector ring areas for covering all sight blocks are sequentially determined on the bottom curved surface corresponding to the corridor; wherein the convex parts of the arcs of the sector ring areas with odd numbers are all oriented toward the end of the corridor, and the convex parts of the arcs of the sector ring areas with even numbers are all oriented toward the starting end of the corridor; According to the spatial rectangular coordinate system, the point on the top curved surface of the corridor corresponding to the center of the circle of the sector ring area in the vertical direction is obtained as the installation point, and the center line direction of the sector ring area is used as the orientation of the corresponding camera when it is installed; Associating the installation point with the corresponding centerline direction and storing the results in a database; In the step of establishing a spatial rectangular coordinate system and dividing the bottom curved surface corresponding to the corridor into sight blocks of N rows and M columns: The sight block is formed by dividing the bottom curve surface corresponding to the corridor by N+1 horizontal curves and M+1 longitudinal lines; the starting end of the bottom curve surface is the first longitudinal line, and the midpoint of the first longitudinal line is used as the starting point to make its perpendicular bisector in the horizontal direction as the transverse line, and the length of each sight block divided in the length direction of the transverse line is the same; each longitudinal line has N+1 dividing points that divide it into N segments, and each of the N+1 horizontal curves passes through the corresponding dividing points on each longitudinal line; In the step of determining a plurality of fan ring areas for covering all the sight blocks in sequence on the bottom curved surface corresponding to the corridor based on the sight blocks of N rows and M columns: The sector ring areas with odd order are determined as follows: First sector ring area: Plan a number of points evenly distributed in the sight block in the middle of the first column, traverse these points and find a point as the center O1 of the first sector ring area; The Eth sector ring area: plan a number of evenly distributed points in the middle sight block in the next sight block column of the sight block column passed by the arc line outside the E-2th sector ring area, traverse these points to find a point as the center OE of the Eth sector ring area; The sector ring areas with even order are determined as follows: Second sector ring area: plan a number of evenly distributed points in the area where the first sector ring area overlaps with the bottom curved surface, traverse these points to find a point as the center O2 of the second sector ring area, so that the second sector ring area covers the uncovered area on the bottom curved surface before the first sector ring area; The Fth sector ring area: plan a number of points evenly distributed in the area where the F-1th sector ring area coincides with the bottom curved surface, traverse these points to find a point as the center OF of the Fth sector ring area, so that the Fth sector ring area covers the uncovered area on the bottom curved surface between the F-1th sector ring area and the F-3th sector ring area; In the above, E is greater than or equal to 3 and is an odd number, and F is greater than or equal to 4 and is an even number.

2. The method according to claim 1, characterized in that The determined odd-numbered fan-ring areas satisfy the following conditions: the center line of the fan-ring area is parallel to the tangent line of the edge of the column where the center of the fan-ring area is located, and compared with the fan-ring areas with other points planned in the same line of sight block as the center, the area of ​​the overlap between the fan-ring area and the bottom curved surface is the largest.

3. The method according to claim 1, characterized in that When determining the even-numbered sector ring areas: First, a number of evenly distributed points are planned on the line segment of the center line of the previous odd-numbered fan ring area on the bottom curve surface, and then these points are traversed to find a point that meets the requirements as the center of the fan ring area with an even number, so as to determine the fan ring area with an even number; If a point that meets the requirements cannot be found on the center line of the last odd-numbered fan ring area, a number of points that are evenly distributed and not on the center line of the last odd-numbered fan ring area are planned in the area where the last odd-numbered fan ring area overlaps with the bottom curved surface, and then these points are traversed to find a point that meets the requirements as the center of the fan ring area with an even number, thereby determining the fan ring area with an even number; If the center of the sector ring area with an even number that meets the requirement is not found in the end, an alarm signal is output.

4. The method according to claim 3, characterized in that When searching for the center of the sector ring area with an even number on the center line of the sector ring area with an odd number last order and when searching for the center of the sector ring area with an even number in the area where the sector ring area with an odd number last order coincides with the bottom curved surface, the following process is included: A virtual sector ring area is constructed with the planned point as the center of the circle and it is determined whether the virtual sector ring area meets the requirements. If the requirements are met, the virtual sector ring area is used as the final sector ring area with an even number in the sorting order, wherein when constructing the virtual sector ring area, the center line of the virtual sector ring area is parallel to the center line of the previous sector ring area with an odd number in the sorting order; If all virtual sector ring areas constructed with the planned point as the center do not meet the requirements, all virtual sector ring areas constructed with the planned point as the center are sequentially operated as follows: The initial state is that the center line of the current virtual sector ring area is parallel to the center line of the previous sector ring area with an odd number. The current virtual sector ring area is first rotated one step at a time in the clockwise direction until it rotates P degrees, and then rotated one step at a time in the counterclockwise direction until it rotates -P degrees, so as to find the sector ring area with an even number that meets the requirements.

5. The method according to claim 4, characterized in that If multiple points that meet the requirements of the center of the fan ring area with an even order are found, a point is randomly selected from them as the center of the fan ring area with an even order, or the point closest to the center of the previous fan ring area with an odd order is found as the center of the fan ring area with an even order.

6. The method according to claim 1, characterized in that Each time after the fan ring area with an even number is determined, the area of ​​the remaining area of ​​the bottom curve surface that is not covered by all the fan ring areas that have been determined is calculated and the area of ​​the remaining area is compared with a threshold. If the area of ​​the remaining area is less than or equal to the threshold, a corner area filling mechanism is triggered to find at least one point in the previous fan ring area with an odd number, so that at least one fan ring area with the at least one point as the center covers the remaining area.

7. A device for visually constructing a corridor, characterized in that: It comprises a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the method according to any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by a processor to implement the method according to any one of claims 1 to 6.