Information processing method and device, electronic equipment and storage medium
By acquiring and analyzing parameter information in the target area, filtering and sorting the camera equipment, the problem of finding the camera equipment with the greatest correlation with the alarm equipment is solved, and a more efficient processing process is achieved.
Patent Information
- Application Number
- CN202411596296.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-11-08
AI Technical Summary
In the space where the alarm device is located, the method of finding the camera device with the greatest correlation with the alarm device is more complex, especially in scenarios where the number of camera devices is large.
By obtaining parameter information in the target area, including parameter information of the blocker and the imaging device, the grid is divided based on this information and the imaging devices that do not have a blockage between the alarm device are selected, and the imaging devices are prioritized.
The process of finding the camera device with the greatest correlation with the alarm device is simplified, the complexity is reduced, and it is suitable for scenarios with a large number of camera devices, and the processing efficiency is improved.
Smart Images

Figure CN119600766A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an information processing method, device, electronic device and storage medium. Background Art
[0002] In the era of digital operation and maintenance, the ability to respond quickly to alarms is often an important indicator for evaluating the maturity of the operation and maintenance system. Alarms are notifications or alarms generated when anomalies, failures, or important events occur in a system, network, or application. They are usually used to alert the operation and maintenance team or related personnel to problems so that appropriate measures can be taken to resolve or deal with these problems.
[0003] When an alarm comes, the usual practice is to immediately open the camera device that is most relevant to the alarm device, such as the camera device that is "facing" the alarm device, and remotely view the real-time image for judgment. Generally speaking, there are usually multiple cameras in the space where the alarm device is located. The current method of finding the camera device that is most relevant to the alarm device is usually to perform ray tracing simulation based on spatial three-dimensional modeling, and find the corresponding camera device based on the simulation results. However, this method is more complex and more difficult to implement in scenarios with a large number of cameras. Summary of the invention
[0004] In view of the above problems, the embodiments of the present application propose an information processing method, device, electronic device and storage medium to solve the problem of high complexity in searching for camera devices.
[0005] According to one aspect of an embodiment of the present application, there is provided an information processing method, the method comprising:
[0006] Acquire parameter information of a target area, parameter information of obstacles in the target area, parameter information of a camera device in the target area, and parameter information of an alarm device in the target area;
[0007] Based on the parameter information of the target area and the parameter information of the obstacle, acquiring the area information of a first area within the target area that includes the obstacle;
[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, screen out the camera devices that are not blocked from the alarm device;
[0009] The screened 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, the obtaining of area information of a first area within the target area including the obstacle based on the parameter information of the target area and the parameter information of the obstacle comprises: dividing the target area into a plurality of grids based on the parameter information of the target area, and obtaining grid information of the grids; and obtaining grid information of the first grid including the obstacle within the target area based on the parameter information of the obstacle as the area information of the first area including the obstacle.
[0011] Optionally, the parameter information of the target area includes the length of the target area and the width of the target area; 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, based on the length of the target area and the width of the target area, dividing the target area into multiple grids according to a preset grid length and a preset grid width; obtaining identification information of the grid as the grid information of the grid.
[0012] Optionally, the parameter information of the obstacle includes the coordinates of the center point of the obstacle, the length of the obstacle and the width of the obstacle; and obtaining the grid information of the first grid containing the obstacle in the target area based on the parameter information of the obstacle includes: calculating the coordinates of the first target point and the second target point of the obstacle based on the coordinates of the center point of the obstacle, the length of the obstacle and the width of the obstacle, the first target point and the second target point being diagonal points of the obstacle; 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 obstacle.
[0013] Optionally, the method of screening out camera devices without obstruction between the camera device and 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 included in the line between the camera device and the alarm device and the height of the discrete points based on the parameter information of the camera device and the parameter information of the alarm device; traversing the discrete points, and judging whether there is an obstruction at the position of the discrete points based on the coordinates of the discrete points and the height of the discrete points; when there is an obstruction at the position of the discrete points, stopping the traversal to determine whether there is an obstruction between the camera device and the alarm device; and when there is no obstruction at the positions of all discrete points, determining that there is no obstruction between the camera device and the alarm device.
[0014] Optionally, the parameter information of the camera device includes the coordinates of the camera device and the height of the camera device, and the parameter information of the alarm device includes the coordinates of the alarm device and the minimum detection height of the alarm device; the calculating the coordinates of discrete points on the line between 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 the discrete points on the line between 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 the discrete points on the line between 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 obstacle includes the height of the obstacle, and the parameter information of the alarm device includes the minimum detection height of the alarm device; judging whether there is an obstruction at the position of the discrete point based on the coordinates of the discrete point and the height of the discrete point includes: determining the area information of a 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 obstacle contained in the second area is greater than the minimum detection height of the alarm device, and the height of the obstacle contained in the second area is greater than the height of the discrete point, it is determined that there is an obstruction at the position of the discrete point.
[0016] Optionally, before filtering out camera devices without obstruction between the camera devices and 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, it also 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; filtering out camera devices without obstruction between the camera devices and 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 without obstruction between the camera devices and 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; filtering out the camera device 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, obtaining a first connecting line between the camera device and the alarm device, and calculating a first angle between the first connecting 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, the priority sorting of the filtered camera devices includes: obtaining a second line between the alarm device and the filtered camera devices, and calculating a second angle between the second line and a shooting normal of the camera device; calculating a second distance between the alarm device and the filtered camera devices; and priority sorting of the filtered 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 an embodiment of the present application, there is provided an information processing device, the device comprising:
[0020] A first acquisition module is used to acquire parameter information of a target area, parameter information of obstacles in the target area, parameter information of a camera device in the target area, and parameter information of an alarm device in the target area;
[0021] A second acquisition module, configured to acquire area information of a first area within the target area that includes the obstacle based on the parameter information of the target area and the parameter information of the obstacle;
[0022] A screening module, configured to screen out, for each alarm device, the camera devices that are not blocked from 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;
[0023] The sorting module is used to prioritize the screened camera devices, wherein 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, used to divide the target area into multiple grids based on the parameter information of the target area, and obtain grid information of the grids; an information acquisition unit, used to obtain grid information of a first grid containing an obstacle in the target area based on the parameter information of the obstacle, as the area information of the first area containing the obstacle.
[0025] Optionally, the parameter information of the target area includes the length of the target area and the 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 of the target area and the width of the target area, according to a preset grid length and a preset grid width; and obtain identification information of the grid as grid information of the grid.
[0026] Optionally, the parameter information of the obstacle includes the coordinates of the center point of the obstacle, the length of the obstacle and the width of the obstacle; the information acquisition unit is specifically used to calculate the coordinates of the first target point and the coordinates of the second target point of the obstacle based on the coordinates of the center point of the obstacle, the length of the obstacle and the width of the obstacle, the first target point and the second target point being diagonal points of the obstacle; 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 obstacle.
[0027] Optionally, the screening module includes: a discrete calculation unit, used to calculate, for each camera device, the coordinates of discrete points included in the line between the camera device and the alarm device and the height of the discrete points based on the parameter information of the camera device and the parameter information of the alarm device; an obstruction judgment unit, used to traverse the discrete points and judge whether there is an obstruction at the position of the discrete points based on the coordinates of the discrete points and the height of the discrete points; a determination unit, used to stop traversal when there is an obstruction at the position of the discrete points, and determine that there is an obstruction between the camera device and the alarm device; when there is no obstruction at the positions of all discrete points, determine that there is no obstruction between the camera device and the alarm device.
[0028] Optionally, the parameter information of the camera device includes the coordinates of the camera device and the height of the camera device, and the parameter information of the alarm device includes the coordinates of the alarm device and the minimum detection height of the alarm device; the discrete calculation unit is specifically used to calculate the coordinates of discrete points included in the line between 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 calculate the height of the discrete points included in the line between 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 obstacle includes the height of the obstacle, and the parameter information of the alarm device includes the minimum detection height of the alarm device; the blocking judgment 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 obstacle contained in the second area is greater than the minimum detection height of the alarm device, and the height of the obstacle contained in the second area is greater than the height of the discrete point, it is determined that there is an obstruction at the position of the discrete point.
[0030] Optionally, the device also includes: a filtering module, which is 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 filter out camera devices that have no obstruction between them and 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 obtain, for each camera device, a first connecting line between 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 connecting line and a 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 a second connecting line between the alarm device and the filtered camera device, and calculate a second angle between the second connecting line and the shooting normal of the camera device; calculate a second distance between the alarm device and the filtered camera device; and prioritize the filtered 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 an embodiment of the present application, an electronic device is provided, comprising a processor and a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium; when the computer program is executed by the processor, the processor executes the information processing method as described in any one of the above items.
[0034] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the information processing method as described in any one of the above items.
[0035] In the embodiment of the present application, by analyzing the parameter information of the target area, the parameter information of the obstacles in the target area, the parameter information of the camera equipment in the target area, and the parameter information of the alarm equipment in the target area, the area information of the first area in the target area containing the obstacles is determined, and then the camera equipment without obstruction between the camera equipment and the alarm equipment is screened out, and then the camera equipment without obstruction between the camera equipment and the alarm equipment is prioritized, and the priority level can characterize the size of the correlation between the camera equipment and the alarm equipment. It can be seen that in the embodiment of the present application, the correlation between the camera equipment and the alarm equipment can be obtained through simple parameter analysis and calculation. Compared with the ray tracing simulation method, the processing process is simpler and can also be implemented for scenes with a large number of camera equipment, and it is more applicable.
[0036] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solution of the embodiment of the present application, the drawings required for use in the description of the embodiment of the present application will be briefly introduced below. Obviously, the drawings described below are only some drawings of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 is a flowchart of the steps of an information processing method according to an embodiment of the present application;
[0039] Figure 2 is a flowchart of another information processing method according to an embodiment of the present application;
[0040] Figure 3 is a structural block diagram of an information processing device according to an embodiment of the present application;
[0041] Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present application;
[0042] Figure 5 It is a structural block diagram of a computer-readable storage medium in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] Reference Figure 1 , showing a step flow chart of an information processing method in an embodiment of the present application.
[0045] like Figure 1 As shown, the information processing method may include the following steps:
[0046] Step 101: Obtain parameter information of a target area, parameter information of obstacles in the target area, parameter information of a camera device in the target area, and parameter information of an alarm device in the target area.
[0047] In the embodiment of the present application, the target area may be an area corresponding to any applicable operation and maintenance scenario. For example, the target area may include but is not limited to: an area where a computer room is located, an area where a data center is located, an area where a factory is located, and the like.
[0048] The target area can be represented by a rectangular area. Exemplarily, 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, and the obstacles may be represented by a rectangular area. For example, when the target area is the area where the machine room is located, the obstacles may be racks, etc. Exemplarily, 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. Exemplarily, the parameter information of the camera device in 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 shoot.
[0051] The target area may include one or more warning devices. Exemplarily, the parameter information of the warning devices in the target area may include but is not limited to: the coordinates of the warning devices, the minimum detection height of the warning devices, and the like.
[0052] It should be noted that in the embodiment of the present application, the coordinate system takes the center point of the target area as the coordinate origin, so the coordinates of the center point of the target area are (0, 0), and the unit is a length unit, such as millimeters, etc. The above parameter information can be obtained according to the actual layout in the scene.
[0053] Step 102: Based on the parameter information of the target area and the parameter information of the obstacle, obtain the area information of a first area in the target area that includes the obstacle.
[0054] The target area may include one or more obstacles. For each obstacle, the area where the obstacle is located is determined, that is, the first area including the obstacle, and the area information of the first area is obtained.
[0055] Exemplarily, based on the parameter information of the target area and the parameter information of the obstacle, the process of obtaining the area information of the first area in the target area including the obstacle may include: dividing the target area into a plurality of grids based on the parameter information of the target area, and obtaining grid information of the grids; based on the parameter information of the obstacle, obtaining grid information of the first grid in the target area including the obstacle as the area information of the first area including the obstacle. By dividing the grids, the computing power can be further reduced and the computing speed can be improved.
[0056] Exemplarily, based on the parameter information of the target area, the target area is divided into a plurality of grids, and the process of obtaining the grid information of the grids includes: starting from the center point of the target area, based on the length of the target area and the width of the target area, the target area is divided into a plurality of grids according to a preset grid length and a preset grid width; and the identification information of the grid is obtained as the grid information of the grid. By dividing the grids in this way and obtaining the identification information of the grids, the grids can be managed in a more standardized manner, simplifying the subsequent process of determining the grid where the coordinate point is located. The preset grid length and the preset grid width can be set according to actual needs, and 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, the horizontal axis range is 0 to 100, and the vertical axis range is 0 to 100 as one grid; the horizontal axis range is 100 to 200, and the vertical axis range is 0 to 100 as one grid; the horizontal axis range is 0 to -100, and the vertical axis range is 0 to 100 as one grid, and so on.
[0058] The identification information of the grid may include horizontal identification information and vertical identification information, and the form of the identification information may 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 from 0 (the horizontal identification information is an integer); when the vertical coordinate is greater than 0, the vertical identification information increases from 0 (the vertical identification information is an integer); when the horizontal coordinate is less than 0, the horizontal identification information decreases from -1 (the horizontal identification information is an integer); when the vertical coordinate is less than 0, the vertical identification information decreases from -1 (the vertical identification information is an integer). For example, for a grid with a horizontal coordinate range of 0 to 100 and a vertical coordinate range of 0 to 100, the horizontal identification information is 0 and the vertical identification information is 0, that is, the identification information is 0_0; for a grid with a horizontal coordinate range of 0 to -100 and a vertical coordinate range of 0 to 100, the horizontal identification information is -1 and the vertical identification information is 0, that is, the identification information is -1_0, and so on.
[0059] Exemplarily, based on the parameter information of the obstacle, obtaining grid information of the first grid containing the obstacle in the target area includes: calculating the coordinates of the first target point and the second target point of the obstacle based on the coordinates of the center point of the obstacle, the length of the obstacle and the width of the obstacle, the first target point and the second target point being diagonal points of the obstacle; 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 obstacle.
[0060] The first target point is the upper left corner of the obstacle, and the second target point is the lower right corner; or, the first target point is the lower left corner of the obstacle, and the second target point is the upper right corner. For example, if the coordinates of the center point of the obstacle are (X1, Y1), the length of the obstacle is L1, and the width of the obstacle is W1, then the coordinates of the upper left corner of the obstacle are (X1-L1 / 2, Y1+W1 / 2), the coordinates of the lower right corner of the obstacle are (X1+L1 / 2, Y1-W1 / 2), the coordinates of the lower left corner of the obstacle are (X1-L1 / 2, Y1-W1 / 2), and the coordinates of the upper right corner of the obstacle are (X1+L1 / 2, Y1+W1 / 2).
[0061] For any coordinate (X i , Y i ), the grid information of the grid where the coordinate is located can be determined by the following formula 1 and formula 2:
[0062] XX=floor(X i / L2) Formula 1
[0063] YY=floor(Y i / W2) Formula 2
[0064] Among them, XX represents the coordinate (X i , Y i ) in the grid information, YY represents the coordinate (X i , Y i ) is located in the grid information, floor() represents the floor function, L2 represents the grid length, and W2 represents the grid width.
[0065] Therefore, according to the above formula 1 and formula 2, 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 other grids except the first target grid and the second target grid in the rectangular area formed by the first target grid and the second target grid. After obtaining the grid information of the first target grid and the grid information of 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 an embodiment of the present application, after obtaining the area information of the first area containing the obstacle in the target area, the area information of the first area containing the obstacle and the height of the obstacle contained in the first area can be stored for subsequent query use. For example, the area information of the first area containing the obstacle and the height of the obstacle contained in the first area can be stored in a Hash table, and so on. The form of the Hash table can be expressed 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, and YY represents the vertical identification information), and hei represents the height of the obstacle contained in 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, screen out the camera devices that are not blocked from the alarm device.
[0069] Exemplarily, the process of screening out the camera devices without obstructions between the camera device and 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, based on the parameter information of the camera device and the parameter information of the alarm device, calculating the coordinates of the discrete points contained in the line between the camera device and the alarm device and the height of the discrete points; traversing the discrete points, and judging whether there is an obstruction at the position of the discrete points based on the coordinates of the discrete points and the height of the discrete points; when there is an obstruction at the position of the discrete points, stopping the traversal and determining that there is an obstruction between the camera device and the alarm device; when there is no obstruction at the positions of all discrete points, determining that there is no obstruction between the camera device and the alarm device. By performing discretization processing, the processing process can be simplified.
[0070] Exemplarily, the process of calculating the coordinates of discrete points included in the line between the camera device and the alarm device and the heights of the discrete points based on the parameter information of the camera device and the parameter information of the alarm device includes: calculating the coordinates of the discrete points included in the line between 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 the discrete points included in the line between 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 limit this. The preset discrete spacing can be a horizontal axis discrete spacing or a 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 discrete point from one end of the camera device. n ,T n ) represents the coordinates of the nth discrete point from one end of the camera device, (x1, y1) represents the coordinates of the camera device, (x2, y2) represents the coordinates of the alarm device, and Δx represents the discrete spacing (specifically, the horizontal axis discrete spacing). It should be noted that in Formula 3 and Formula 4, when x2 is greater than x1, Δx takes a positive value, otherwise Δx takes a negative value.
[0076] For example, the height of discrete points can be calculated by the following formula 5:
[0077]
[0078] Among them, H n represents the height of the nth discrete point from one end of the camera device, h1 represents the height of the camera device, h2 represents the minimum detection height of the alarm device, and other parameters refer to the description of the above formula 3 and formula 5. It should be noted that in formula 5, Δx always takes a positive value.
[0079] Exemplarily, judging whether there is an obstruction at the position of the discrete point based on the coordinates of the discrete point and the height of the discrete point includes: determining 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, determining that there is an obstruction at the position of the discrete point; otherwise, determining that there is no obstruction at the position of the discrete point.
[0080] The area information of the second area where the discrete point is located may be specifically grid information of the second grid where the coordinates of the discrete point are located. Therefore, based on the coordinates of the discrete point, the area information of the second area where the discrete point is located may be determined according to the above formulas 1 and 2.
[0081] Step 104: Prioritize the screened 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 have no obstruction with 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] Exemplarily, the process of prioritizing the filtered camera devices may include: obtaining a second line between the alarm device and the filtered 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 filtered camera devices; and prioritizing the filtered 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 the camera devices that are not blocked from the alarm device, a second connecting line between the alarm device and the filtered camera devices can be obtained, and a second angle between the second connecting line and the shooting normal of the camera device can be calculated, and a second distance between the alarm device and the filtered camera devices can be calculated. The relevant information of the camera devices that are not blocked from the alarm device is stored.
[0085] For example, for each alarm device, the relevant information of the camera devices that are not blocked from the alarm device can be stored in an array format. For example, the array is arr, and the format of arr can be expressed as follows: arr = [{cameraId:'camera001', dist:3800, ang:10}, ...], where cameraId represents the identifier of the filtered camera device, dist represents the second distance between the alarm device and the filtered camera device, and ang represents the second angle between the second connecting line between the alarm device and the filtered camera device and the shooting normal of the filtered camera device.
[0086] According to the coordinates of the alarm device and the coordinates of the filtered camera devices, the second line between the alarm device and the filtered camera devices is calculated. For example, the vector corresponding to the second line can be obtained by subtracting the two coordinates, which can be processed according to actual experience. The angle between the second line and the shooting normal (specifically a vector) of the filtered camera device can be calculated by the angle calculation formula between two line segments, which can be processed according to actual experience. According to the coordinates of the alarm device and the coordinates of the filtered camera devices, the second distance between the alarm device and the filtered camera devices can be calculated by the distance calculation formula, which can be processed according to actual experience.
[0087] According to the rule that the smaller the second distance and the smaller the second angle, the higher the priority, the selected camera devices are prioritized. For example, first sort by the second distance, the smaller the second distance, the higher the priority, and when the second distances are equal, sort by the second angle, the smaller the second angle, the higher the priority. For another example, first sort by the second angle, the smaller the second angle, the higher the priority, and when the second angles are equal, 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 corresponding to the second distance, and the selected camera devices can be prioritized according to the rule that the smaller the normalized distance and the smaller the second angle, the higher the priority. By normalizing the distance, the second distance can be simplified, thereby simplifying the processing process.
[0089] For the specific process of normalization, any applicable method may be used. For example, the second distance may be normalized with M as the modulus. For example, the second distance may be normalized with 500 mm as the modulus, for example, if the distance is 3800 mm, then the normalized distance is 7.
[0090] For each alarm device, after the screened camera devices are prioritized, the camera device ranking result corresponding to the alarm device is obtained. The camera device ranking result corresponding to the alarm device can be stored in an array form.
[0091] Since the higher the priority of the camera device, the greater the correlation between the camera device and the alarm device, the corresponding camera device can capture clearer and more accurate video of the alarm device. 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, so as to quickly and accurately select the associated video of the alarm device.
[0092] In the embodiment of the present application, 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 process is simpler and can be implemented for scenes with a large number of cameras, and is more applicable.
[0093] Reference Figure 2 , shows a step flow chart of another information processing method according to an embodiment of the present application.
[0094] like Figure 2 As shown, the information processing method may include the following steps:
[0095] Step 201: Obtain parameter information of a target area, parameter information of obstacles in the target area, parameter information of a camera device in the target area, and parameter information of an alarm device in the target area.
[0096] Step 202: Based on the parameter information of the target area and the parameter information of the obstacle, obtain the area information of a first area in the target area that includes the obstacle.
[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 the camera devices whose shooting range does not cover the alarm device.
[0098] Exemplarily, 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, based on the coordinates of the camera device and the coordinates of the alarm device, obtaining a first connecting line between the camera device and the alarm device, and calculating a first angle between the first connecting 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; and 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] For the calculation process of the first connecting line, the first angle, and the first distance, reference may be made to the relevant description above, and this embodiment will not be discussed in detail here.
[0100] By filtering out the camera devices whose shooting range does not cover the alarm device, the number of camera devices that need to be analyzed subsequently can be further reduced, thereby 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 the camera devices that are not blocked by the alarm device from the remaining camera devices after filtering.
[0102] Step 205: for each alarm device, prioritize the screened 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 explained using a specific example.
[0104] Scenario description: A city computer room (equivalent to the target area) has an alarm device, 3 racks (equivalent to obstacles), and 3 cameras. The length of the machine room plane is 6000mm, the width is 5000mm, and the coordinate of the center point of the machine room is (0, 0); the length of rack 1, rack 2, and rack 3 are all 1200mm, the width is 600mm, and the height is 1500mm. The coordinate of the center point of rack 1 is (0, -1400), the coordinate of the center point of rack 2 is (0, 0), and the coordinate of the center point of rack 3 is (0, 1400); the horizontal wide angle of camera 1, camera 2, and camera 3 is 87 degrees, the coordinate of camera 1 is (-1500, 2500), the coordinate of camera 2 is (1500, -2500), and the coordinate of camera 3 is (1500, 2500). The height of camera 1, camera 2, and camera 3 is 3000mm. The coordinate of the alarm device is (300, -1400), and the minimum detection height of the alarm device is 750mm. It is required to quickly find the two camera devices that are most closely related to the alarm device.
[0105] (1) Obtain parameter information of the above-mentioned computer room, parameter information of racks (including rack 1, rack 2, rack 3), parameter information of alarm equipment, and parameter information of camera equipment (including camera equipment 1, camera equipment 2, camera equipment 3).
[0106] (2) The plane of the computer room is gridded, with a grid length of 100 mm and a grid width of 100 mm, and grid information of each grid, specifically, identification information of the grid, is obtained.
[0107] (3) Calculate the grid information (identification information) of the first grid containing the obstacle, and obtain the height of the rack contained in the first grid. As shown in Table 1:
[0108] Table 1 The first grid table
[0109]
[0110]
[0111] (4) Traverse the camera devices, calculate the first angle between the first connecting line between 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 eliminate the camera device. Through calculation, none of the three cameras in the scene need to be eliminated.
[0112] (5) Traverse the remaining camera devices, first discretize the lines between the remaining camera devices and the alarm device into multiple discrete points, and calculate the coordinates and height of each discrete point. As shown in Table 2, it is a table of discrete points on the line between camera device 1 and the alarm device.
[0113] Table 2 Discrete points on the line between the camera device 1 and the 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 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 determine whether there is an obstruction at the position of the discrete points based on the identification information of the second grid where the discrete points are located and the height of the discrete points; when there is an obstruction at the position of the discrete points, stop traversal and determine that there is an obstruction between the camera device and the alarm device; when there is no obstruction at the positions of all discrete points, determine that there is no obstruction between the camera device and the alarm device.
[0119] (7) The camera devices that are not blocked from the alarm device are stored in the camera device result array, and the camera device result array arr1 = [{cameraId:'camera002',dist:4080,ang:30},{cameraId:'camera003',dist:1627,ang:10}] is obtained.
[0120] (8) Prioritize the camera device result array.
[0121] (9) Output the sorted result array: arr2 = [{cameraId:'camera003',dist:1627,ang:10},{cameraId:'camera002',dist:4080,ang:30}].
[0122] In the embodiment of the present application, the modeling idea is clear. Simply by providing the parameter information of the target area, the parameter information of the obstacles in the target area, the parameter information of the camera equipment in the target area, and the parameter information of the alarm equipment in the target area, the solution can be quickly calculated through this algorithm; through the grid algorithm, the computing power is minimized to the greatest extent under the condition of meeting the limited conditions; it has strong versatility and is applicable to massive spatial scenes; the calculation logic is clear, easy to implement using programming, and has good performance. In actual use, this method is very effective when it comes to finding the optimal camera equipment problem, and can quickly select related videos and quickly locate related camera equipment.
[0123] Reference Figure 3 , shows a structural block diagram of an information processing device according to an embodiment of the present 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 a target area, parameter information of obstacles in the target area, parameter information of a camera device in the target area, and parameter information of an alarm device in the target area;
[0126] A second acquisition module 302 is used to acquire area information of a first area within the target area that includes the obstacle based on the parameter information of the target area and the parameter information of the obstacle;
[0127] A screening module 303 is used to screen out, for each alarm device, the camera devices that are not blocked from 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;
[0128] The sorting module 304 is used to prioritize the screened camera devices. 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, used to divide the target area into multiple grids based on the parameter information of the target area, and obtain grid information of the grids; an information acquisition unit, used to obtain grid information of a first grid containing an obstacle in the target area based on the parameter information of the obstacle, as the area information of the first area containing the obstacle.
[0130] Optionally, the parameter information of the target area includes the length of the target area and the 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 of the target area and the width of the target area, according to a preset grid length and a preset grid width; and obtain identification information of the grid as grid information of the grid.
[0131] Optionally, the parameter information of the obstacle includes the coordinates of the center point of the obstacle, the length of the obstacle and the width of the obstacle; the information acquisition unit is specifically used to calculate the coordinates of the first target point and the coordinates of the second target point of the obstacle based on the coordinates of the center point of the obstacle, the length of the obstacle and the width of the obstacle, the first target point and the second target point being diagonal points of the obstacle; 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 obstacle.
[0132] Optionally, the screening module 303 includes: a discrete calculation unit, used to calculate, for each camera device, the coordinates of discrete points contained in the line between the camera device and the alarm device and the height of the discrete points based on the parameter information of the camera device and the parameter information of the alarm device; an obstruction judgment unit, used to traverse the discrete points and judge whether there is an obstruction at the position of the discrete points based on the coordinates of the discrete points and the height of the discrete points; a determination unit, used to stop traversal when there is an obstruction at the position of the discrete points, and determine that there is an obstruction between the camera device and the alarm device; when there is no obstruction at the positions of all discrete points, determine that there is no obstruction between the camera device and the alarm device.
[0133] Optionally, the parameter information of the camera device includes the coordinates of the camera device and the height of the camera device, and the parameter information of the alarm device includes the coordinates of the alarm device and the minimum detection height of the alarm device; the discrete calculation unit is specifically used to calculate the coordinates of discrete points included in the line between 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 calculate the height of the discrete points included in the line between 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 obstacle includes the height of the obstacle, and the parameter information of the alarm device includes the minimum detection height of the alarm device; the obstruction judgment 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 obstacle contained in the second area is greater than the minimum detection height of the alarm device, and the height of the obstacle contained in the second area is greater than the height of the discrete point, it is determined that there is an obstruction at the position of the discrete point.
[0135] Optionally, the device also includes: a filtering module, which is 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 filter out camera devices that have no obstruction between them and 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 obtain, for each camera device, a first connecting line between 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 connecting line and a 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 a second connecting line between the alarm device and the filtered camera device, and calculate a second angle between the second connecting line and the shooting normal of the camera device; calculate a second distance between the alarm device and the filtered camera device; and prioritize the filtered camera devices according to the rule that the smaller the second distance and the smaller the second angle, the higher the priority.
[0138] In the embodiment of the present application, 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 process is simpler and can be implemented for scenes with a large number of cameras, and is more applicable.
[0139] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0140] In an embodiment of the present application, an electronic device is further provided. The electronic device may include a processor and a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium; when the computer program is executed by the processor, the processor executes the information processing method of any of the above embodiments.
[0141] Reference Figure 4 , shows a structural block diagram of an electronic device according to an embodiment of the present 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] Processor 401 is used to execute computer program 4021 stored on computer-readable storage medium 402. When executing computer program 4021, processor 401 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 repeated 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 computer-readable storage medium 402 mentioned above may include but is not limited to: read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), electronic erasable programmable read-only memory (EEPROM), hard disk, floppy disk, flash memory, etc.
[0145] In an embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored. The computer program can be executed by a processor of an electronic device. When the computer program is executed by the processor, the processor executes the information processing method described in any of the above embodiments.
[0146] Reference Figure 5 , shows a block diagram of a computer-readable storage medium according to an embodiment of the present application. Figure 5 As shown, a computer program 501 is stored on a computer-readable storage medium 50. When the computer program 501 is executed by a processor, the processor executes the information processing method described in any of the above embodiments and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0147] The various embodiments in this specification are interrelated, and each embodiment is described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referenced to each other.
[0148] It should be noted that all actions to obtain signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the location and with the authorization given by the owner of the corresponding device.
[0149] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0150] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0151] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0152] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0153] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0154] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0155] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0156] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. An information processing method, characterized in that: The method comprises: Acquire parameter information of a target area, parameter information of obstacles in the target area, parameter information of a camera device in the target area, and parameter information of an alarm device in the target area; Based on the parameter information of the target area and the parameter information of the obstacle, acquiring the area information of a first area within the target area that includes the obstacle; 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, screen out the camera devices that are not blocked from the alarm device; The screened 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.
2. The method according to claim 1, characterized in that The acquiring, based on the parameter information of the target area and the parameter information of the obstacle, the area information of the first area in the target area including the obstacle comprises: Based on the parameter information of the target area, the target area is divided into a plurality of grids, and grid information of the grids is acquired; Based on the parameter information of the obstacle, grid information of a first grid including the obstacle in the target area is acquired as the area information of the first area including the obstacle.
3. The method according to claim 2, characterized in that The parameter information of the target area includes the length of the target area and the width of the target area; dividing the target area into a plurality of grids based on the parameter information of the target area, and acquiring grid information of the grids, includes: Starting from the center point of the target area, based on the length of the target area and the width of the target area, the target area is divided into a plurality of grids according to a preset grid length and a preset grid width; The identification information of the grid is obtained as the grid information of the grid.
4. The method according to claim 2, characterized in that: The parameter information of the obstacle includes the coordinates of the center point of the obstacle, the length of the obstacle, and the width of the obstacle; and obtaining the grid information of the first grid containing the obstacle in the target area based on the parameter information of the obstacle includes: Calculate the coordinates of a first target point and a second target point of the barrier based on the coordinates of the center point of the barrier, the length of the barrier, and the width of the barrier, where the first target point and the second target point are diagonal points of the barrier; 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 obstacle.
5. The method according to claim 1, characterized in that The step of screening out the camera devices without any obstruction between the camera devices and the alarm device based on the area information of the first area, the parameter information of the camera devices, and the parameter information of the alarm device includes: For each camera device, based on the parameter information of the camera device and the parameter information of the alarm device, calculate the coordinates of the discrete points included in the line connecting the camera device and the alarm device and the heights of the discrete points; Traversing the discrete points, and judging whether there is an obstruction at the position of the discrete points based on the coordinates of the discrete points and the heights of the discrete points; When there is an obstruction at the position of the discrete point, stop traversal and determine that there is an obstruction between the camera device and the alarm device; When there is no obstruction at the positions of all discrete points, it is determined that there is no obstruction between the camera device and the alarm device.
6. The method according to claim 5, characterized in that The parameter information of the camera device includes the coordinates of the camera device and the height of the camera device, and the parameter information of the alarm device includes the coordinates of the alarm device and the minimum detection height of the alarm device; the calculating the coordinates of discrete points included in the line between the camera device and the alarm device and the height of the discrete points based on the parameter information of the camera device and the parameter information of the alarm device includes: Calculate the coordinates of discrete points on the line between 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; 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, the heights of discrete points included in the line between the camera device and the alarm device are calculated.
7. The method according to claim 5, characterized in that The parameter information of the obstacle includes the height of the obstacle, and the parameter information of the alarm device includes the minimum detection height of the alarm device; The determining, based on the coordinates of the discrete points and the heights of the discrete points, whether there is an obstruction at the positions of the discrete points comprises: Determining, based on the coordinates of the discrete points, area information of a second area where the discrete points are located; When the area information of the second area exists in the area information of the first area, and the height of the obstacles contained in the second area is greater than the minimum detection height of the alarm device, and the height of the obstacles contained in the second area is greater than the height of the discrete point, it is determined that there is an obstruction at the position of the discrete point.
8. The method according to claim 1, characterized in that Before screening out the camera devices without any obstruction between the camera devices and the alarm device based on the area information of the first area, the parameter information of the camera devices 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, filtering out the camera devices whose shooting range does not cover the alarm device; The method of filtering out the camera devices without any obstruction between the camera devices and the alarm device based on the area information of the first area, the parameter information of the camera devices and the parameter information of the alarm device comprises: filtering out the camera devices without any obstruction between the camera devices and 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 devices and the parameter information of the alarm device.
9. The method according to claim 8, 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; filtering out the camera device 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, comprises: For each camera device, based on the coordinates of the camera device and the coordinates of the alarm device, a first connecting line between the camera device and the alarm device is obtained, and a first angle between the first connecting line and a shooting normal of the camera device is calculated; Calculate a first distance between the warning device and the camera device based on the coordinates of the camera device and the coordinates of the warning 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, the camera device is filtered out.
10. The method according to claim 1, characterized in that The prioritizing of the screened camera devices includes: Acquire a second connecting line between the alarm device and the screened camera device, and calculate a second angle between the second connecting line and a shooting normal of the camera device; Calculating a second distance between the alarm device and the screened camera device; The screened camera devices are prioritized according to the rule that the smaller the second distance and the smaller the second angle, the higher the priority.
11. An information processing device, characterized in that: The device comprises: A first acquisition module is used to acquire parameter information of a target area, parameter information of obstacles in the target area, parameter information of a camera device in the target area, and parameter information of an alarm device in the target area; A second acquisition module, configured to acquire area information of a first area within the target area that includes the obstacle based on the parameter information of the target area and the parameter information of the obstacle; A screening module, configured to screen out, for each alarm device, the camera devices that are not blocked from 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 sorting module is used to prioritize the screened camera devices, wherein the higher the priority of the camera device, the greater the correlation between the camera device and the alarm device.
12. An electronic device, characterized in that: The electronic device comprises a processor and a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program; When the computer program is executed by the processor, the processor is caused to execute the information processing method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the information processing method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Method and apparatus for monitoring moving target, and child's bed
CN106887113A
Method and device for detecting shielding of camera of vehicle-mounted terminal, vehicle-mounted terminal and vehicle
CN113705332A
Intelligent security alarm system
CN113766126A
Monocular vision positioning method and device, storage medium and electronic equipment
CN115578470A
Household intelligent security monitoring method and system
CN116761049A