Information processing methods, devices, electronic equipment and storage media
By dividing the target area into grids and calculating discrete points on the connection lines between camera devices and alarm devices, unobstructed camera devices are filtered out and prioritized, solving the complexity problem of finding the correlation of camera devices in large scenes and achieving efficient correlation analysis.
Patent Information
- Application Number
- CN202411596296.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2044-11-08
AI Technical Summary
Locating the camera device most closely associated with alarm devices in large-scale scenarios is highly complex, and existing ray tracing simulation methods are difficult to implement.
By acquiring parameter information of the target area, obstructions, and camera devices, a grid is divided and the coordinates and height of discrete points on the connection between the camera devices and alarm devices are calculated. Camera devices without obstructions are selected and prioritized according to the connection distance and angle.
It simplifies the process of finding the correlation between camera devices and alarm devices, is applicable to a large number of camera device scenarios, and improves processing efficiency and accuracy.
Smart Images

Figure CN119600766B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to an information processing method, apparatus, electronic device and storage medium. Background Technology
[0002] In the era of digital operations and maintenance (O&M), the ability to respond quickly to alerts is often a key indicator of the maturity of an O&M system. An alert is a notification or warning generated when an anomaly, failure, or important event occurs in a system, network, or application. It is typically used to alert the O&M team or relevant personnel to problems so that appropriate measures can be taken to resolve or handle them.
[0003] When an alarm occurs, the usual practice is to immediately activate the camera most closely associated with the alarm device, such as the camera directly facing the alarm, and remotely view the real-time footage for assessment. Generally, multiple cameras exist in the space where the alarm device is located. Currently, the method for finding the camera most closely associated with the alarm device typically involves ray tracing simulation based on a 3D spatial model, and then identifying the corresponding camera based on the simulation results. However, this method is complex and becomes even more difficult to implement in scenarios with a large number of cameras. Summary of the Invention
[0004] In view of the above problems, this application proposes an information processing method, apparatus, electronic device and storage medium to solve the problem of high complexity in locating camera devices.
[0005] According to one aspect of an embodiment of this application, an information processing method is provided, the method comprising:
[0006] Acquire parameter information of the target area, parameter information of obstructions within the target area, parameter information of camera devices within the target area, and parameter information of alarm devices within the target area;
[0007] Based on the parameter information of the target area and the parameter information of the obstruction, obtain the area information of the first area within the target area that contains the obstruction;
[0008] For each alarm device, based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device, camera devices that are not obstructed by the alarm device are selected;
[0009] The selected camera devices are prioritized, and the higher the priority of the camera device, the greater the correlation between the camera device and the alarm device.
[0010] Optionally, obtaining the region information of the first region containing the obstruction within the target region based on the parameter information of the target region and the parameter information of the obstruction includes: dividing the target region into multiple grids based on the parameter information of the target region and obtaining the grid information of the grids; obtaining the grid information of the first grid containing the obstruction within the target region based on the parameter information of the obstruction, as the region information of the first region containing the obstruction.
[0011] Optionally, the parameter information of the target area includes the length and width of the target area; the step of dividing the target area into multiple grids based on the parameter information of the target area and obtaining the grid information of the grids includes: starting from the center point of the target area, dividing the target area into multiple grids according to the length and width of the target area and a preset grid length and a preset grid width; obtaining the identification information of the grids as the grid information of the grids.
[0012] Optionally, the parameter information of the obstruction includes the coordinates of the center point of the obstruction, the length of the obstruction, and the width of the obstruction; obtaining the grid information of the first grid containing the obstruction within the target area based on the parameter information of the obstruction includes: calculating the coordinates of a first target point and a second target point of the obstruction based on the coordinates of the center point of the obstruction, the length of the obstruction, and the width of the obstruction, wherein the first target point and the second target point are diagonal points of the obstruction; determining the grid information of the first target grid where the coordinates of the first target point are located and the grid information of the second target grid where the coordinates of the second target point are located, and using the grid information of the first target grid, the grid information of the second target grid, and the grid information of the grid between the first target grid and the second target grid as the grid information of the first grid containing the obstruction.
[0013] Optionally, the step of filtering out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device includes: for each camera device, calculating the coordinates and height of discrete points contained on the line connecting the camera device and the alarm device based on the parameter information of the camera device and the parameter information of the alarm device; traversing the discrete points, determining whether there is an obstruction at the position of the discrete point based on the coordinates and height of the discrete point; stopping the traversal when there is an obstruction at the position of the discrete point, and determining that there is an obstruction between the camera device and the alarm device; and determining that there is no obstruction between the camera device and the alarm device when there is no obstruction at the positions of all discrete points.
[0014] Optionally, the parameter information of the camera device includes the coordinates and height of the camera device, and the parameter information of the alarm device includes the coordinates and minimum detection height of the alarm device; the step of calculating the coordinates and height of discrete points contained on the line connecting the camera device and the alarm device based on the parameter information of the camera device and the parameter information of the alarm device includes: calculating the coordinates of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the coordinates of the alarm device, and a preset discrete spacing; and calculating the height of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the height of the camera device, the coordinates of the alarm device, the minimum detection height of the alarm device, and the discrete spacing.
[0015] Optionally, the parameter information of the obstruction includes the height of the obstruction, and the parameter information of the alarm device includes the minimum detection height of the alarm device; determining whether there is an obstruction at the location of the discrete point based on the coordinates and height of the discrete point includes: determining the area information of the second region where the discrete point is located based on the coordinates of the discrete point; when the area information of the second region exists in the area information of the first region, and the height of the obstruction contained in the second region is greater than the minimum detection height of the alarm device, and the height of the obstruction contained in the second region is greater than the height of the discrete point, it is determined that there is an obstruction at the location of the discrete point.
[0016] Optionally, before filtering out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device, the method further includes: filtering out camera devices whose shooting range does not cover the alarm device based on the parameter information of the camera device and the parameter information of the alarm device; the step of filtering out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device includes: filtering out camera devices that are not obstructed by the alarm device from the remaining camera devices after filtering, based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device.
[0017] Optionally, the parameter information of the camera device includes the coordinates of the camera device, and the parameter information of the alarm device includes the coordinates of the alarm device; the step of filtering out camera devices whose shooting range does not cover the alarm device based on the parameter information of the camera device and the parameter information of the alarm device includes: for each camera device, obtaining a first line connecting the camera device and the alarm device based on the coordinates of the camera device and the coordinates of the alarm device, and calculating a first angle between the first line and the shooting normal of the camera device; calculating a first distance between the alarm device and the camera device based on the coordinates of the camera device and the coordinates of the alarm device; filtering out the camera device when the first angle is greater than the horizontal wide-angle of the camera device, or the first distance is greater than the effective distance of the camera device.
[0018] Optionally, prioritizing the selected camera devices includes: obtaining a second connection between the alarm device and the selected camera devices, and calculating a second angle between the second connection and the shooting normal of the camera device; calculating a second distance between the alarm device and the selected camera devices; and prioritizing the selected camera devices according to the rule that the smaller the second distance and the smaller the second angle, the higher the priority.
[0019] According to another aspect of the embodiments of this application, an information processing apparatus is provided, the apparatus comprising:
[0020] The first acquisition module is used to acquire parameter information of the target area, parameter information of the obstructions in the target area, parameter information of the camera device in the target area, and parameter information of the alarm device in the target area.
[0021] The second acquisition module is used to acquire area information of the first area containing the obstruction within the target area based on the parameter information of the target area and the parameter information of the obstruction;
[0022] The filtering module is used to filter out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device and the parameter information of the alarm device for each alarm device;
[0023] The sorting module is used to prioritize the selected camera devices. The higher the priority of the camera device, the greater the correlation between the camera device and the alarm device.
[0024] Optionally, the second acquisition module includes: a grid division unit, configured to divide the target area into multiple grids based on the parameter information of the target area, and acquire the grid information of the grids; and an information acquisition unit, configured to acquire the grid information of the first grid containing the obstruction within the target area based on the parameter information of the obstruction, as the area information of the first area containing the obstruction.
[0025] Optionally, the parameter information of the target area includes the length and width of the target area; the grid division unit is specifically used to divide the target area into multiple grids starting from the center point of the target area, based on the length and width of the target area, according to a preset grid length and a preset grid width; and to obtain the identification information of the grid as the grid information of the grid.
[0026] Optionally, the parameter information of the obstruction includes the coordinates of the center point of the obstruction, the length of the obstruction, and the width of the obstruction; the information acquisition unit is specifically used to calculate the coordinates of a first target point and a second target point of the obstruction based on the coordinates of the center point of the obstruction, the length of the obstruction, and the width of the obstruction, wherein the first target point and the second target point are diagonal points of the obstruction; determine the grid information of the first target grid where the coordinates of the first target point are located and the grid information of the second target grid where the coordinates of the second target point are located, and use the grid information of the first target grid, the grid information of the second target grid, and the grid information of the grid between the first target grid and the second target grid as the grid information of the first grid containing the obstruction.
[0027] Optionally, the filtering module includes: a discrete calculation unit, used for each camera device, to calculate the coordinates and height of discrete points contained on the line connecting the camera device and the alarm device based on the parameter information of the camera device and the parameter information of the alarm device; an obstruction judgment unit, used for traversing the discrete points and determining whether there is an obstruction at the position of the discrete point based on the coordinates and height of the discrete point; and a determination unit, used for stopping the traversal when there is an obstruction at the position of the discrete point, and determining that there is an obstruction between the camera device and the alarm device; and determining that there is no obstruction between the camera device and the alarm device when there is no obstruction at the positions of all discrete points.
[0028] Optionally, the parameter information of the camera device includes the coordinates and height of the camera device, and the parameter information of the alarm device includes the coordinates and minimum detection height of the alarm device; the discrete calculation unit is specifically used to calculate the coordinates of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the coordinates of the alarm device, and a preset discrete spacing; and to calculate the height of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the height of the camera device, the coordinates of the alarm device, the minimum detection height of the alarm device, and the discrete spacing.
[0029] Optionally, the parameter information of the obstruction includes the height of the obstruction, and the parameter information of the alarm device includes the minimum detection height of the alarm device; the obstruction determination unit is specifically used to determine the area information of the second area where the discrete point is located based on the coordinates of the discrete point; when the area information of the second area exists in the area information of the first area, and the height of the obstruction contained in the second area is greater than the minimum detection height of the alarm device, and the height of the obstruction contained in the second area is greater than the height of the discrete point, it is determined that there is an obstruction at the location of the discrete point.
[0030] Optionally, the device further includes: a filtering module, used to filter out camera devices whose shooting range does not cover the alarm device based on the parameter information of the camera device and the parameter information of the alarm device; the screening module is specifically used to screen out camera devices that do not obstruct the alarm device from the remaining camera devices after filtering, based on the area information of the first area, the parameter information of the camera device and the parameter information of the alarm device.
[0031] Optionally, the parameter information of the camera device includes the coordinates of the camera device, and the parameter information of the alarm device includes the coordinates of the alarm device; the filtering module is specifically used to, for each camera device, obtain a first line connecting the camera device and the alarm device based on the coordinates of the camera device and the coordinates of the alarm device, and calculate a first angle between the first line connecting the camera device and the shooting normal of the camera device; calculate a first distance between the alarm device and the camera device based on the coordinates of the camera device and the coordinates of the alarm device; and filter out the camera device when the first angle is greater than the horizontal wide-angle of the camera device, or the first distance is greater than the effective distance of the camera device.
[0032] Optionally, the sorting module is specifically used to obtain the second connection between the alarm device and the selected camera device, and calculate the second angle between the second connection and the shooting normal of the camera device; calculate the second distance between the alarm device and the selected camera device; and sort the selected camera devices according to the rule that the smaller the second distance and the smaller the second angle, the higher the priority.
[0033] According to another aspect of the embodiments of this application, an electronic device is provided, the electronic device including a processor and a computer-readable storage medium storing a computer program; when the computer program is executed by the processor, the processor performs the information processing method as described in any of the preceding claims.
[0034] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, causes the processor to perform the information processing method as described in any of the preceding claims.
[0035] In this embodiment, by analyzing the parameter information of the target area, the parameter information of obstructions within the target area, the parameter information of the camera devices within the target area, and the parameter information of the alarm devices within the target area, the region information of the first region containing obstructions within the target area is determined. Then, camera devices that are not obstructed by any alarm devices are selected, and these camera devices are prioritized. The priority level represents the degree of correlation between the camera devices and the alarm devices. Therefore, in this embodiment, the correlation between camera devices and alarm devices can be obtained through simple parameter analysis and calculation. Compared to ray tracing simulation, the processing is simpler and can be implemented even in scenarios with a large number of camera devices, making it more applicable.
[0036] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0037] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some drawings of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a flowchart illustrating the steps of an information processing method according to an embodiment of this application;
[0039] Figure 2 This is a flowchart illustrating the steps of another information processing method according to an embodiment of this application;
[0040] Figure 3 This is a structural block diagram of an information processing device according to an embodiment of this application;
[0041] Figure 4 This is a structural block diagram of an electronic device according to an embodiment of this application;
[0042] Figure 5 This is a structural block diagram of a computer-readable storage medium according to an embodiment of this application. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0044] Reference Figure 1 The diagram illustrates a flowchart of the steps of an information processing method according to an embodiment of this application.
[0045] like Figure 1 As shown, the information processing method may include the following steps:
[0046] Step 101: Obtain parameter information of the target area, parameter information of obstructions within the target area, parameter information of camera devices within the target area, and parameter information of alarm devices within the target area.
[0047] In this embodiment, the target area can be any area corresponding to an applicable operation and maintenance scenario. For example, the target area may include, but is not limited to, the area where the server room is located, the area where the data center is located, the area where the factory is located, and so on.
[0048] The target area can be represented by a rectangular area. For example, the parameter information of the target area may include, but is not limited to: the length of the target area, the width of the target area, the coordinates of the center point of the target area, the coordinates of the upper left corner of the target area, the coordinates of the lower right corner of the target area, and so on.
[0049] The target area may include one or more obstacles, which can be represented by rectangular areas. For example, when the target area is the area where the server room is located, the obstacles can be server racks, etc. For example, the parameter information of the obstacles in the target area may include, but is not limited to: the coordinates of the center point of the obstacle, the length of the obstacle, the width of the obstacle, the height of the obstacle, etc.
[0050] The target area may include multiple camera devices. For example, the parameter information of the camera devices within the target area may include, but is not limited to: the coordinates of the camera device, the height of the camera device, the horizontal wide-angle of the camera device, the effective distance of the camera device (known), the shooting normal of the camera device, etc. The effective distance of the camera device may refer to the farthest distance that the camera device can capture.
[0051] The target area may include one or more alarm devices. For example, the parameter information of the alarm devices in the target area may include, but is not limited to: the coordinates of the alarm devices, the minimum detection height of the alarm devices, etc.
[0052] It should be noted that in this embodiment, the coordinate system uses the center point of the target area as the origin, therefore the coordinates of the center point of the target area are (0, 0), and the unit is a length unit, such as millimeters. The above parameter information can be obtained based on the actual layout in the scene.
[0053] Step 102: Based on the parameter information of the target area and the parameter information of the obstruction, obtain the area information of the first area containing the obstruction within the target area.
[0054] The target area may include one or more obstructions. For each obstruction, the area where the obstruction is located is determined, that is, the first area containing the obstruction, and the area information of the first area is obtained.
[0055] For example, the process of obtaining region information of a first region containing the obstruction within the target region based on the parameter information of the target region and the parameter information of the obstruction may include: dividing the target region into multiple grids based on the parameter information of the target region, and obtaining the grid information of the grids; obtaining the grid information of the first grid containing the obstruction within the target region based on the parameter information of the obstruction, and using it as the region information of the first region containing the obstruction. By dividing the region into grids, computational power can be further reduced and computational speed can be improved.
[0056] For example, the process of dividing the target region into multiple grids based on the parameter information of the target region and obtaining the grid information of the grids includes: starting from the center point of the target region, dividing the target region into multiple grids according to the length and width of the target region and a preset grid length and preset grid width; and obtaining the identification information of the grids as the grid information of the grids. Dividing the grids in this way and obtaining the grid identification information allows for more standardized grid management and simplifies the subsequent process of determining the grid where the coordinate point is located. The preset grid length and preset grid width can be set according to actual needs; this embodiment does not impose any restrictions on this.
[0057] For example, if the preset grid length is 100 mm and the preset grid width is 100 mm, then starting from the center point of the target area (i.e., taking the center point of the target area as the starting point), multiple 100 mm * 100 mm grids are obtained. The grid length corresponds to the horizontal axis, and the grid width corresponds to the vertical axis. Specifically, a grid consists of a horizontal axis range of 0 to 100 and a vertical axis range of 0 to 100; a grid consists of a horizontal axis range of 100 to 200 and a vertical axis range of 0 to 100; a grid consists of a horizontal axis range of 0 to -100 and a vertical axis range of 0 to 100, and so on.
[0058] The grid's identification information can include horizontal and vertical identification information, and the form of the identification information can include, but is not limited to, horizontal identification information_vertical identification information. Starting from the center point of the target area, when the horizontal coordinate is greater than 0, the horizontal identification information increases sequentially from 0 (horizontal identification information is an integer); when the vertical coordinate is greater than 0, the vertical identification information increases sequentially from 0 (vertical identification information is an integer); when the horizontal coordinate is less than 0, the horizontal identification information decreases sequentially from -1 (horizontal identification information is an integer); when the vertical coordinate is less than 0, the vertical identification information decreases sequentially from -1 (vertical identification information is an integer). For example, a grid with a horizontal coordinate range of 0 to 100 and a vertical coordinate range of 0 to 100 has a horizontal identification information of 0 and a vertical identification information of 0, i.e., the identification information is 0_0; a grid with a horizontal coordinate range of 0 to -100 and a vertical coordinate range of 0 to 100 has a horizontal identification information of -1 and a vertical identification information of 0, i.e., the identification information is -1_0, and so on.
[0059] For example, based on the parameter information of the obstruction, obtaining the grid information of the first grid containing the obstruction within the target area includes: calculating the coordinates of a first target point and a second target point of the obstruction based on the coordinates of the center point of the obstruction, the length of the obstruction, and the width of the obstruction, wherein the first target point and the second target point are diagonal points of the obstruction; determining the grid information of the first target grid where the coordinates of the first target point are located and the grid information of the second target grid where the coordinates of the second target point are located; and using the grid information of the first target grid, the grid information of the second target grid, and the grid information of the grid between the first target grid and the second target grid as the grid information of the first grid containing the obstruction.
[0060] The first target point is the upper left corner of the obstruction, and the second target point is the lower right corner; or, the first target point is the lower left corner of the obstruction, and the second target point is the upper right corner. For example, if the coordinates of the center point of the obstruction are (X1, Y1), the length of the obstruction is L1, and the width of the obstruction is W1, then the coordinates of the upper left corner of the obstruction are (X1-L1 / 2, Y1+W1 / 2), the coordinates of the lower right corner of the obstruction are (X1+L1 / 2, Y1-W1 / 2), the coordinates of the lower left corner of the obstruction are (X1-L1 / 2, Y1-W1 / 2), and the coordinates of the upper right corner of the obstruction are (X1+L1 / 2, Y1+W1 / 2).
[0061] For any coordinate (X) i Y i For example, the raster information of the grid where the coordinate is located can be determined by the following formulas 1 and 2:
[0062] XX = floor(X) i / L2) Formula 1
[0063] YY = floor(Y i / W2) Formula 2
[0064] Where XX represents the coordinates (X) i Y i The horizontal identifier information in the raster information of the cell in which the ) is located, where YY represents the coordinates (X, Y). i Y i The vertical identifier information in the grid information of the grid cell containing the cell is floor(), which represents the floor function, L2 represents the grid length, and W2 represents the grid width.
[0065] Therefore, based on Formula 1 and Formula 2 above, the grid information of the first target grid where the coordinates of the first target point are located and the grid information of the second target grid where the coordinates of the second target point are located are determined.
[0066] The grid between the first target grid and the second target grid refers to the other grids in the rectangular area formed by the first target grid and the second target grid, excluding the first target grid and the second target grid. After obtaining the grid information of the first target grid and the second target grid, the grid information of the grid between the first target grid and the second target grid can be obtained.
[0067] In this embodiment of the application, after obtaining the area information of the first area containing the obstruction within the target area, the area information of the first area containing the obstruction and the height of the obstruction contained within the first area can be stored for subsequent querying. For example, the area information of the first area containing the obstruction and the height of the obstruction contained within the first area can be stored in a hash table, etc. The hash table can be represented as follows: Hash = {XX_YY:{hei:…},……}, where XX_YY represents the area information of the first area (specifically, the grid information of the first grid, XX represents the horizontal identification information, YY represents the vertical identification information), and hei represents the height of the obstruction contained within the first area.
[0068] Step 103: For each alarm device, based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device, filter out camera devices that are not obstructed by the alarm device.
[0069] For example, the process of filtering out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device may include: for each camera device, calculating the coordinates and height of discrete points contained on the line connecting the camera device and the alarm device based on the parameter information of the camera device and the parameter information of the alarm device; traversing the discrete points, determining whether there is an obstruction at the position of the discrete point based on the coordinates and height of the discrete point; stopping the traversal when there is an obstruction at the position of the discrete point, and determining that there is an obstruction between the camera device and the alarm device; and determining that there is no obstruction between the camera device and the alarm device when there is no obstruction at the positions of all discrete points. Discretization simplifies the processing.
[0070] For example, the process of calculating the coordinates and height of discrete points contained on the line connecting the camera device and the alarm device based on the parameter information of the camera device and the parameter information of the alarm device includes: calculating the coordinates of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the coordinates of the alarm device, and a preset discrete spacing; and calculating the height of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the height of the camera device, the coordinates of the alarm device, the minimum detection height of the alarm device, and the discrete spacing.
[0071] The preset discrete spacing can be set according to actual needs, and this embodiment does not impose any restrictions on it. The preset discrete spacing can be either the horizontal axis discrete spacing or the vertical axis discrete spacing. For example, the horizontal axis discrete spacing can be 1 / 5 of the grid length, etc.
[0072] For example, the coordinates of discrete points can be calculated using the following formulas 3 and 4:
[0073] P n =x1+n·Δx Formula 3
[0074]
[0075] Where n represents the nth discrete point counted from one end of the camera device, (P n ,T n Let (x1, y1) represent the coordinates of the nth discrete point counting from one end of the camera device, (x2, y2) represent the coordinates of the camera device, (x2, y2) represent the coordinates of the alarm device, and Δx represent the discrete interval (specifically, the discrete interval of the horizontal coordinate). It should be noted that in formulas 3 and 4, Δx takes a positive value when x2 is greater than x1, and a negative value otherwise.
[0076] For example, the height of a discrete point can be calculated using the following formula 5:
[0077]
[0078] Among them, H n h1 represents the height of the nth discrete point measured from one end of the camera device, h2 represents the minimum detection height of the alarm device, and other parameters are explained in Formulas 3 and 5 above. It should be noted that in Formula 5, Δx always takes a positive value.
[0079] For example, determining whether there is an obstruction at the location of the discrete point based on the coordinates and height of the discrete point includes: determining the area information of the second region where the discrete point is located based on the coordinates of the discrete point; if the area information of the second region exists in the area information of the first region, and the height of the obstruction contained in the second region is greater than the minimum detection height of the alarm device, and the height of the obstruction contained in the second region is greater than the height of the discrete point, then it is determined that there is an obstruction at the location of the discrete point; otherwise, it is determined that there is no obstruction at the location of the discrete point.
[0080] Specifically, the region information of the second region where the discrete point is located can be the raster information of the second grid cell where the coordinates of the discrete point are located. Therefore, based on the coordinates of the discrete point, the region information of the second region where the discrete point is located can be determined according to Formula 1 and Formula 2 above.
[0081] Step 104: Prioritize the selected camera devices. The higher the priority of the camera device, the greater the correlation between the camera device and the alarm device.
[0082] For each alarm device, after filtering out the camera devices that are not obstructed by the alarm device, the filtered camera devices can be prioritized. The higher the priority of the camera device, the greater the correlation between the camera device and the alarm device.
[0083] For example, the process of prioritizing the selected camera devices may include: obtaining a second line connecting the alarm device and the selected camera devices, and calculating a second angle between the second line and the shooting normal of the camera device; calculating a second distance between the alarm device and the selected camera devices; and prioritizing the selected camera devices according to the rule that the smaller the second distance and the smaller the second angle, the higher the priority.
[0084] For each alarm device, after filtering out camera devices that are not obstructed by the alarm device, a second line connecting the alarm device and the filtered camera devices can be obtained. A second angle between the second line and the shooting normal of the camera device is calculated, as well as a second distance between the alarm device and the filtered camera devices. The relevant information of the camera devices that are not obstructed by the alarm device is stored.
[0085] For example, for each alarm device, the relevant information of the camera devices that are not obstructed by the alarm device can be stored in the form of an array. For example, this array is arr, and arr can be represented as follows: arr = [{cameraId:'camera001',dist:3800,ang:10},…], where cameraId represents the identifier of the selected camera device, dist represents the second distance between the alarm device and the selected camera device, and ang represents the second angle between the second line connecting the alarm device and the selected camera device and the shooting normal of the selected camera device.
[0086] Based on the coordinates of the alarm device and the selected camera devices, a second line connecting the alarm device and the selected camera devices is calculated. For example, the vector corresponding to the second line can be obtained by subtracting the two coordinates; specific handling can be based on practical experience. The angle between the second line and the shooting normal (specifically, a vector) of the selected camera device can be calculated using the formula for the angle between two line segments; specific handling can be based on practical experience. Based on the coordinates of the alarm device and the selected camera devices, a second distance between the alarm device and the selected camera devices can be calculated using the distance calculation formula; specific handling can be based on practical experience.
[0087] The selected cameras are prioritized according to the rule that the smaller the second distance and the smaller the second included angle, the higher the priority. For example, first sort by the second distance, the smaller the second distance, the higher the priority; if the second distances are equal, then sort by the second included angle, the smaller the second included angle, the higher the priority. Or, for example, first sort by the second included angle, the smaller the second included angle, the higher the priority; if the second included angles are equal, then sort by the second distance, the smaller the second distance, the higher the priority.
[0088] For example, before sorting, the second distance can be normalized to obtain a normalized distance. Then, the selected camera devices are prioritized according to the rule that the smaller the normalized distance and the smaller the second included angle, the higher the priority. Normalizing the distance simplifies the second distance, thereby simplifying the processing.
[0089] The normalization process can be handled using any applicable method. For example, the second distance can be normalized using M as the modulus. For instance, if the second distance is normalized using 500mm as the modulus, and the distance is 3800mm, then the normalized distance is 7.
[0090] For each alarm device, the selected camera devices are prioritized and sorted to obtain the sorting result for that alarm device. This sorting result can be stored as an array.
[0091] Since a higher priority camera device indicates a greater correlation between the camera device and the alarm device, the video captured by the camera device is clearer and more accurate. Therefore, after the alarm device issues an alarm, the video of at least one camera device with the highest priority can be selected for analysis, thereby quickly and accurately selecting the associated video of the alarm device.
[0092] In this embodiment, the correlation between the camera device and the alarm device can be obtained through simple parameter analysis and calculation. Compared with the ray tracing simulation method, the processing is simpler and can be implemented in scenarios with a large number of camera devices, making it more applicable.
[0093] Reference Figure 2 The diagram illustrates a flowchart of another information processing method according to an embodiment of this application.
[0094] like Figure 2 As shown, the information processing method may include the following steps:
[0095] Step 201: Obtain parameter information of the target area, parameter information of obstructions within the target area, parameter information of camera devices within the target area, and parameter information of alarm devices within the target area.
[0096] Step 202: Based on the parameter information of the target area and the parameter information of the obstruction, obtain the area information of the first area containing the obstruction within the target area.
[0097] Step 203: For each alarm device, based on the parameter information of the camera device and the parameter information of the alarm device, filter out camera devices whose shooting range does not cover the alarm device.
[0098] For example, the process of filtering out camera devices whose shooting range does not cover the alarm device based on the parameter information of the camera device and the parameter information of the alarm device may include: for each camera device, obtaining a first line connecting the camera device and the alarm device based on the coordinates of the camera device and the coordinates of the alarm device, and calculating a first angle between the first line and the shooting normal of the camera device; calculating a first distance between the alarm device and the camera device based on the coordinates of the camera device and the coordinates of the alarm device; filtering out the camera device when the first angle is greater than the horizontal wide-angle of the camera device, or the first distance is greater than the effective distance of the camera device.
[0099] The calculation process for the first connection, the first included angle, and the first distance can be referred to the relevant description above, and will not be discussed in detail here.
[0100] By filtering out cameras whose shooting range does not cover the alarm device, the number of cameras that need to be analyzed subsequently can be further reduced, thus improving processing efficiency.
[0101] Step 204: For each alarm device, based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device, select camera devices from the remaining camera devices after filtering that do not obstruct the alarm device.
[0102] Step 205: For each alarm device, prioritize the selected camera devices. The higher the priority of the camera device, the greater the correlation between the camera device and the alarm device.
[0103] The following is an illustration using a specific example.
[0104] Scenario description: A city data center (equivalent to the target area) has one alarm device, three racks (equivalent to obstacles), and three camera devices. The server room has a length of 6000mm and a width of 5000mm, with its center point at coordinates (0, 0). Racks 1, 2, and 3 are all 1200mm long, 600mm wide, and 1500mm high. The center points of rack 1, 2, and 3 are (0, -1400), (0, 0), and (0, 1400). Cameras 1, 2, and 3 all have a horizontal wide-angle of 87 degrees. The coordinates of camera 1 are (-1500, 2500), camera 2 is (1500, -2500), and camera 3 is (1500, 2500). The height of each camera is 3000mm. The alarm device is located at coordinates (300, -1400), and its minimum detection height is 750mm. The requirement is to quickly identify the two camera devices with the strongest correlation to the alarm device.
[0105] (1) Obtain the parameter information of the above-mentioned computer room, the parameter information of the racks (including rack 1, rack 2, rack 3), the parameter information of the alarm devices, and the parameter information of the camera devices (including camera device 1, camera device 2, camera device 3).
[0106] (2) Grid the computer room plane with a grid length of 100mm and a grid width of 100mm, and obtain the grid information of each grid, specifically the grid identification information.
[0107] (3) Calculate the grid information (identification information) of the first grid cell containing the obstruction, and obtain the height of the rack contained in the first grid cell. As shown in Table 1:
[0108] Table 1 First Grid Table
[0109]
[0110]
[0111] (4) Traverse the camera devices, calculate the first angle between the first line connecting the alarm device and the camera device and the shooting normal of the camera device, and the first distance between the alarm device and the camera device. If the first angle is greater than the horizontal wide-angle of the camera device, or the first distance is greater than the effective distance of the camera device, then remove this camera device. Through calculation, none of the three camera devices in the scene need to be removed.
[0112] (5) Traverse the remaining camera devices. First, discretize the connection between the remaining camera devices and the alarm devices into multiple discrete points, and calculate the coordinates and height of each discrete point. As shown in Table 2, this is a table of discrete points on the connection between camera device 1 and the alarm devices.
[0113] Table 2. Discrete points on the connection line between camera device 1 and alarm device.
[0114] Serial Number coordinates of discrete points Height of discrete points 1 (-1480,2456.7) 2225 2 (-1460,2413.3) 2200 3 (-1440,2370) 2175 4 … … 5 (300,-1400) 750
[0115] (6) Traverse the discrete points in (5) and calculate the second grid where the discrete point is located. The results are shown in Table 3.
[0116] Table 3 Second Grid Table
[0117] Serial Number The identification information of the second grid cell where the discrete point is located. Height of discrete points 1 -14_24 2225 2 -14_24 2200 3 -14_23 2175 4 … … 5 3_-14 750
[0118] Traverse the discrete points, and based on the identification information of the second grid where the discrete point is located and the height of the discrete point, determine whether there is an obstruction at the position of the discrete point; if there is an obstruction at the position of the discrete point, stop traversing and determine that there is an obstruction between the camera device and the alarm device; if there is no obstruction at the position of all discrete points, determine that there is no obstruction between the camera device and the alarm device.
[0119] (7) Store the camera devices that are not obstructed by the alarm device into the camera device result array to obtain the camera device result array arr1 = [{cameraId:'camera002',dist:4080,ang:30},{cameraId:'camera003',dist:1627,ang:10}].
[0120] (8) Sort the result array of the camera equipment by priority.
[0121] (9) Output the sorted result array: arr2 = [{cameraId:'camera003',dist:1627,ang:10},{cameraId:'camera002',dist:4080,ang:30}].
[0122] In this embodiment, the modeling approach is clear. Simply providing the target area parameter information, the parameter information of obstacles within the target area, the parameter information of cameras within the target area, and the parameter information of alarm devices within the target area allows for rapid calculation of a solution using this algorithm. By employing a grid algorithm, computational power is minimized to the greatest extent possible under certain conditions. It possesses strong versatility and is suitable for massive spatial scenarios. The computational logic is clear, easy to implement through programming, and exhibits good performance. In practical use, this method is highly effective when dealing with the problem of finding the optimal camera device, enabling rapid selection of associated video and quick location of associated camera devices.
[0123] Reference Figure 3 The diagram shows a structural block diagram of an information processing apparatus according to an embodiment of this application.
[0124] like Figure 3 As shown, the information processing device may include the following modules:
[0125] The first acquisition module 301 is used to acquire parameter information of the target area, parameter information of the obstructions in the target area, parameter information of the camera device in the target area, and parameter information of the alarm device in the target area.
[0126] The second acquisition module 302 is used to acquire area information of a first area containing the obstruction within the target area based on the parameter information of the target area and the parameter information of the obstruction.
[0127] The filtering module 303 is used to filter out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device and the parameter information of the alarm device for each alarm device;
[0128] The sorting module 304 is used to sort the selected camera devices by priority. The higher the priority of the camera device, the greater the correlation between the camera device and the alarm device.
[0129] Optionally, the second acquisition module 302 includes: a grid division unit, configured to divide the target area into multiple grids based on the parameter information of the target area, and acquire the grid information of the grids; and an information acquisition unit, configured to acquire the grid information of the first grid containing the obstruction within the target area based on the parameter information of the obstruction, as the area information of the first area containing the obstruction.
[0130] Optionally, the parameter information of the target area includes the length and width of the target area; the grid division unit is specifically used to divide the target area into multiple grids starting from the center point of the target area, based on the length and width of the target area, according to a preset grid length and a preset grid width; and to obtain the identification information of the grid as the grid information of the grid.
[0131] Optionally, the parameter information of the obstruction includes the coordinates of the center point of the obstruction, the length of the obstruction, and the width of the obstruction; the information acquisition unit is specifically used to calculate the coordinates of a first target point and a second target point of the obstruction based on the coordinates of the center point of the obstruction, the length of the obstruction, and the width of the obstruction, wherein the first target point and the second target point are diagonal points of the obstruction; determine the grid information of the first target grid where the coordinates of the first target point are located and the grid information of the second target grid where the coordinates of the second target point are located, and use the grid information of the first target grid, the grid information of the second target grid, and the grid information of the grid between the first target grid and the second target grid as the grid information of the first grid containing the obstruction.
[0132] Optionally, the filtering module 303 includes: a discrete calculation unit, used for calculating, for each camera device, the coordinates and height of discrete points contained on the line connecting the camera device and the alarm device based on the parameter information of the camera device and the parameter information of the alarm device; an obstruction judgment unit, used for traversing the discrete points and determining whether there is an obstruction at the position of the discrete point based on the coordinates and height of the discrete point; and a determination unit, used for stopping the traversal when there is an obstruction at the position of the discrete point and determining that there is an obstruction between the camera device and the alarm device; and determining that there is no obstruction between the camera device and the alarm device when there is no obstruction at the positions of all discrete points.
[0133] Optionally, the parameter information of the camera device includes the coordinates and height of the camera device, and the parameter information of the alarm device includes the coordinates and minimum detection height of the alarm device; the discrete calculation unit is specifically used to calculate the coordinates of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the coordinates of the alarm device, and a preset discrete spacing; and to calculate the height of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the height of the camera device, the coordinates of the alarm device, the minimum detection height of the alarm device, and the discrete spacing.
[0134] Optionally, the parameter information of the obstruction includes the height of the obstruction, and the parameter information of the alarm device includes the minimum detection height of the alarm device; the obstruction determination unit is specifically used to determine the area information of the second area where the discrete point is located based on the coordinates of the discrete point; when the area information of the second area exists in the area information of the first area, and the height of the obstruction contained in the second area is greater than the minimum detection height of the alarm device, and the height of the obstruction contained in the second area is greater than the height of the discrete point, it is determined that there is an obstruction at the location of the discrete point.
[0135] Optionally, the device further includes: a filtering module, used to filter out camera devices whose shooting range does not cover the alarm device based on the parameter information of the camera device and the parameter information of the alarm device; the screening module is specifically used to screen out camera devices that do not obstruct the alarm device from the remaining camera devices after filtering, based on the area information of the first area, the parameter information of the camera device and the parameter information of the alarm device.
[0136] Optionally, the parameter information of the camera device includes the coordinates of the camera device, and the parameter information of the alarm device includes the coordinates of the alarm device; the filtering module is specifically used to, for each camera device, obtain a first line connecting the camera device and the alarm device based on the coordinates of the camera device and the coordinates of the alarm device, and calculate a first angle between the first line connecting the camera device and the shooting normal of the camera device; calculate a first distance between the alarm device and the camera device based on the coordinates of the camera device and the coordinates of the alarm device; and filter out the camera device when the first angle is greater than the horizontal wide-angle of the camera device, or the first distance is greater than the effective distance of the camera device.
[0137] Optionally, the sorting module 304 is specifically used to obtain the second connection between the alarm device and the selected camera device, and calculate the second angle between the second connection and the shooting normal of the camera device; calculate the second distance between the alarm device and the selected camera device; and sort the selected camera devices according to the rule that the smaller the second distance and the smaller the second angle, the higher the priority.
[0138] In this embodiment, the correlation between the camera device and the alarm device can be obtained through simple parameter analysis and calculation. Compared with the ray tracing simulation method, the processing is simpler and can be implemented in scenarios with a large number of camera devices, making it more applicable.
[0139] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0140] In embodiments of this application, an electronic device is also provided. This electronic device may include a processor and a computer-readable storage medium storing a computer program; when the computer program is executed by the processor, the processor performs the information processing method of any of the above embodiments.
[0141] Reference Figure 4 This diagram illustrates a structural block diagram of an electronic device according to an embodiment of this application. Figure 4 As shown, the electronic device 40 includes a processor 401 and a computer-readable storage medium 402, on which a computer program 4021 is stored.
[0142] The processor 401 is used to execute the computer program 4021 stored on the computer-readable storage medium 402. When the processor 401 executes the computer program 4021, it implements the information processing method of any of the above embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0143] The processor 401 mentioned above may include, but is not limited to: a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0144] The aforementioned computer-readable storage medium 402 may include, but is not limited to: read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), electronically erasable programmable read-only memory (EEPROM), hard disk, floppy disk, flash memory, etc.
[0145] In embodiments of this application, a computer-readable storage medium is also provided, on which a computer program is stored, which can be executed by a processor of an electronic device, and when the computer program is executed by the processor, the processor performs the information processing method as described in any of the above embodiments.
[0146] Reference Figure 5 This diagram illustrates a structural block diagram of a computer-readable storage medium according to an embodiment of this application. Figure 5 As shown, a computer-readable storage medium 50 stores a computer program 501. When the computer program 501 is executed by a processor, it causes the processor to perform the information processing method as described in any of the above embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0147] The various embodiments in this specification are related to each other and are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
[0148] It should be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and regulations of the locality and with authorization from the owner of the relevant device.
[0149] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0150] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0151] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0152] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0153] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0154] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0155] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, the functional units in the various embodiments of this application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0156] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. In summary, the content of this specification should not be construed as a limitation of this application.
Claims
1. An information processing method, characterized in that, The method includes: Acquire parameter information of the target area, parameter information of obstructions within the target area, parameter information of camera devices within the target area, and parameter information of alarm devices within the target area; Based on the parameter information of the target area and the parameter information of the obstruction, obtain the area information of the first area within the target area that contains the obstruction; For each alarm device, based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device, camera devices that are not obstructed by the alarm device are selected; The selected camera devices are prioritized, and the higher the priority of the camera device, the greater the correlation between the camera device and the alarm device. The camera device's parameter information includes the camera device's coordinates and height, and the alarm device's parameter information includes the alarm device's coordinates and minimum detection height. The step of filtering out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device includes: for each camera device, calculating the coordinates of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the coordinates of the alarm device, and a preset discrete spacing; calculating the height of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the height of the camera device, the coordinates of the alarm device, the minimum detection height of the alarm device, and the discrete spacing; traversing the discrete points, determining whether there is an obstruction at the position of the discrete point based on the coordinates and height of the discrete point; stopping the traversal when there is an obstruction at the position of the discrete point, and determining that there is an obstruction between the camera device and the alarm device; and determining that there is no obstruction between the camera device and the alarm device when there is no obstruction at the position of all discrete points.
2. The method according to claim 1, characterized in that, The step of obtaining region information of a first region within the target area containing the obstruction based on parameter information of the target area and parameter information of the obstruction includes: Based on the parameter information of the target region, the target region is divided into multiple grids, and the grid information of the grids is obtained; Based on the parameter information of the obstruction, the grid information of the first grid containing the obstruction within the target area is obtained, which is used as the area information of the first area containing the obstruction.
3. The method according to claim 2, characterized in that, The parameter information of the target region includes the length and width of the target region; the step of dividing the target region into multiple grids based on the parameter information of the target region and obtaining the grid information of the grids includes: Starting from the center point of the target area, based on the length and width of the target area, the target area is divided into multiple grids according to a preset grid length and a preset grid width; Obtain the identifier information of the grid, and use it as the grid information of the grid.
4. The method according to claim 2, characterized in that, The parameter information of the obstruction includes the coordinates of the center point of the obstruction, the length of the obstruction, and the width of the obstruction; the step of obtaining the grid information of the first grid cell containing the obstruction within the target area based on the parameter information of the obstruction includes: Based on the coordinates of the center point of the obstruction, the length of the obstruction, and the width of the obstruction, calculate the coordinates of the first target point and the second target point of the obstruction, wherein the first target point and the second target point are diagonal points of the obstruction; Determine the grid information of the first target grid where the coordinates of the first target point are located and the grid information of the second target grid where the coordinates of the second target point are located. Use the grid information of the first target grid, the grid information of the second target grid, and the grid information of the grid between the first target grid and the second target grid as the grid information of the first grid containing the obstruction.
5. The method according to claim 1, characterized in that, The parameter information of the obstruction includes the height of the obstruction, and the parameter information of the alarm device includes the minimum detection height of the alarm device; The step of determining whether there is an obstruction at the position of the discrete point based on the coordinates and height of the discrete point includes: Based on the coordinates of the discrete point, determine the regional information of the second region where the discrete point is located; If the area information of the second area exists in the area information of the first area, and the height of the obstruction contained in the second area is greater than the minimum detection height of the alarm device, and the height of the obstruction contained in the second area is greater than the height of the discrete point, then it is determined that there is an obstruction at the location of the discrete point.
6. The method according to claim 1, characterized in that, Before filtering out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device, the method further includes: Based on the parameter information of the camera device and the parameter information of the alarm device, camera devices whose shooting range does not cover the alarm device are filtered out; The step of filtering out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device includes: filtering out camera devices that are not obstructed by the alarm device from the remaining camera devices after filtering, based on the area information of the first area, the parameter information of the camera device, and the parameter information of the alarm device.
7. The method according to claim 6, characterized in that, The parameter information of the camera device includes the coordinates of the camera device, and the parameter information of the alarm device includes the coordinates of the alarm device; the step of filtering out camera devices whose shooting range does not cover the alarm device based on the parameter information of the camera device and the parameter information of the alarm device includes: For each camera device, based on the coordinates of the camera device and the coordinates of the alarm device, a first connection line between the camera device and the alarm device is obtained, and a first angle between the first connection line and the shooting normal of the camera device is calculated. Based on the coordinates of the camera device and the coordinates of the alarm device, calculate the first distance between the alarm device and the camera device; When the first included angle is greater than the horizontal wide-angle of the camera device, or the first distance is greater than the effective distance of the camera device, the camera device is filtered out.
8. The method according to claim 1, characterized in that, The step of prioritizing the selected camera devices includes: Obtain the second connection between the alarm device and the selected camera device, and calculate the second angle between the second connection and the shooting normal of the camera device; Calculate the second distance between the alarm device and the selected camera devices; The selected camera devices are prioritized according to the rule that the smaller the second distance and the smaller the second included angle, the higher the priority.
9. An information processing device, characterized in that, The device includes: The first acquisition module is used to acquire parameter information of the target area, parameter information of the obstructions in the target area, parameter information of the camera device in the target area, and parameter information of the alarm device in the target area. The second acquisition module is used to acquire area information of the first area containing the obstruction within the target area based on the parameter information of the target area and the parameter information of the obstruction; The filtering module is used to filter out camera devices that are not obstructed by the alarm device based on the area information of the first area, the parameter information of the camera device and the parameter information of the alarm device for each alarm device; The sorting module is used to prioritize the selected camera devices. The higher the priority of the camera device, the greater the correlation between the camera device and the alarm device. The camera device's parameter information includes the camera device's coordinates and height, and the alarm device's parameter information includes the alarm device's coordinates and minimum detection height. The filtering module includes: a discrete calculation unit, used to calculate the coordinates of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the coordinates of the alarm device, and a preset discrete spacing; and to calculate the height of discrete points contained on the line connecting the camera device and the alarm device based on the coordinates of the camera device, the height of the camera device, the coordinates of the alarm device, the minimum detection height of the alarm device, and the discrete spacing; an obstruction judgment unit, used to traverse the discrete points and determine whether there is an obstruction at the position of the discrete point based on the coordinates and height of the discrete point; and a determination unit, used to stop traversing when there is an obstruction at the position of the discrete point and determine that there is an obstruction between the camera device and the alarm device; and to determine that there is no obstruction between the camera device and the alarm device when there is no obstruction at the positions of all discrete points.
10. An electronic device, characterized in that, The electronic device includes a processor and a computer-readable storage medium on which a computer program is stored; When the computer program is executed by the processor, the processor performs the information processing method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the information processing method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Monocular vision positioning method and device, storage medium and electronic equipment
CN115578470A
Household intelligent security monitoring method and system
CN116761049A