Configuration method and system for preset positions of cameras in substation inspection system
Through the automatic determination of the image recognition algorithm and the shooting control parameter, the automatic configuration of the camera preset position in the video monitoring system in the substation video monitoring system is realized, the problem of cumbersome operation and low efficiency in the existing technology, and improved the setting efficiency.
Patent Information
- Application Number
- CN202411325824.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-09-23
AI Technical Summary
In the prior art, the operation of setting preset positions of the camera in the video surveillance system of the substation is cumbersome and has low efficiency, especially when the area range is large and there are many preset positions.
Through image processing technology, use the venue map and image recognition algorithm of the substation, automatically recognize and frame the coordinate box of the preset position, and determine the corresponding shooting control parameters to realize the automatic setting of the camera.
Simplified the operation of the camera settings, improved the setting efficiency, can automatically identify and configure the preset position, without manual settings, suitable for large -scale substation and other scenarios.
Smart Images

Figure CN119342170A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of image processing, and in particular to a method and system for configuring camera preset positions in a substation patrol system. Background Art
[0002] Video surveillance systems are usually used to monitor specific scene areas. Taking substations as an example, video surveillance systems can monitor the status of equipment in substations by capturing pictures or recording videos with cameras. In order to facilitate monitoring of specific locations in the area, it is necessary to set the preset positions of the camera. In related technologies, manual operation is required to control the rotation of the camera and set the preset positions. When the area is large and there are many preset positions, the manual operation to set the preset positions is cumbersome and has low setting efficiency. Summary of the invention
[0003] In view of this, an object of the present disclosure is to provide a method and system for configuring camera preset positions in a substation patrol system, so as to simplify the operation of setting preset positions for cameras and improve setting efficiency.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for configuring camera preset positions in a substation patrol system, the method comprising: determining a target camera to be configured according to a distribution position in a target monitoring area in a substation site map, wherein the target camera has a number of preset positions to be configured; controlling the target camera to capture a target image at a patrol point in the substation patrol system, wherein the target image is a typical scene image containing the target to be patrolled; using an image recognition algorithm to identify the preset positions contained in the target image, and automatically selecting a coordinate frame of the preset positions on the target image; determining shooting control parameters corresponding to the coordinate frame of the preset positions; wherein the shooting control parameters are used to: control the target camera to capture a monitoring image containing the preset positions, and the preset positions meet preset conditions in the monitoring image; associating, saving and binding the preset positions and the shooting control parameters corresponding to the coordinate frames of the preset positions to form a patrol preset information for the patrol point.
[0005] The step of determining the target camera to be configured according to the distribution position in the target monitoring area in the substation site map includes: selecting the target interval from the substation site map; and determining the target camera to be configured from the cameras within the specified range of the target interval.
[0006] The above-mentioned step of controlling the target camera to capture the target image at the patrol point in the substation patrol system includes: controlling the target camera to rotate, and controlling the target camera to capture multiple alternative images during the rotation process; identifying the target to be patrolled from the multiple alternative images, and determining the alternative image containing the target to be patrolled as the target image.
[0007] The above-mentioned step of using an image recognition algorithm to identify the preset positions contained in the target image includes: based on a preset position type set in advance, using an image recognition algorithm to identify the preset positions contained in the target image; wherein the preset position type includes: at least one of a position status preset position, a meter type preset position, and a device appearance preset position.
[0008] When the above-mentioned preset position types include position status preset positions, the position status preset positions include: at least one preset position of pressure plate status, air switch status, and indicator light status; when the above-mentioned preset position types include meter type preset positions, the meter type preset positions include: at least one preset position of pressure gauge, oil temperature gauge, and leakage current meter; when the above-mentioned preset position types include equipment appearance preset positions, the equipment appearance preset positions include: at least one preset position of bird's nest, oil stain, and damaged dial.
[0009] The above-mentioned step of using an image recognition algorithm to identify the preset positions contained in the target image and automatically selecting a coordinate box of the preset positions on the target image includes: inputting the target image into a pre-trained image recognition model, identifying the preset positions contained in the target image through the image recognition model, and selecting a coordinate box of the preset positions on the target image.
[0010] The step of determining the shooting control parameters corresponding to the preset coordinate frame includes: determining the shooting control parameters corresponding to the preset coordinate frame based on the shooting control parameters corresponding to the target image, the position information of the preset coordinate frame in the target image and the physical parameters of the target camera.
[0011] The above-mentioned preset conditions include: the area ratio of the display area of the preset position in the monitoring image; the shooting control parameters include: translation parameters, tilt parameters and zoom parameters; the above-mentioned step of determining the shooting control parameters corresponding to the coordinate frame of the preset position based on the shooting control parameters corresponding to the target image, the position information of the coordinate frame of the preset position in the target image and the physical parameters of the target camera includes: determining the translation parameters and tilt parameters among the shooting control parameters corresponding to the coordinate frame of the preset position based on the position information of the coordinate frame of the preset position in the target image, the physical parameters of the target camera and the shooting control parameters corresponding to the target image; determining the zoom parameters among the shooting control parameters corresponding to the coordinate frame of the preset position based on the shooting control parameters corresponding to the target image, the physical parameters of the target camera and the area ratio.
[0012] The position information of the preset coordinate frame in the target image includes: the first coordinate of the first vertex of the rectangular frame corresponding to the preset coordinate frame in the target image, and the second coordinate of the second vertex in the target image; the first vertex and the second vertex are diagonal vertices to each other; the step of determining the translation parameter and tilt parameter in the shooting control parameters corresponding to the preset coordinate frame based on the position information of the preset coordinate frame in the target image, the physical parameters of the target camera, and the shooting control parameters corresponding to the target image includes: determining the coordinate offset based on the first coordinate and the second coordinate; determining the offset coefficient based on the physical parameters of the target camera and the scaling parameters in the shooting control parameters corresponding to the target image; determining the translation parameter in the shooting control parameters corresponding to the preset coordinate frame based on the translation parameter, coordinate offset and offset coefficient in the shooting control parameters corresponding to the target image; determining the tilt parameter in the shooting control parameters corresponding to the preset coordinate frame based on the tilt parameter, coordinate offset and offset coefficient in the shooting control parameters corresponding to the target image.
[0013] The above-mentioned step of determining the scaling parameter in the shooting control parameters corresponding to the coordinate frame of the preset position based on the shooting control parameters corresponding to the target image, the physical parameters of the target camera and the area ratio includes: determining the picture scaling factor based on the area ratio and the offset coefficient of the target camera; when the scaling parameter in the shooting control parameters corresponding to the target image is equal to one, determining the scaling parameter in the shooting control parameters corresponding to the coordinate frame of the preset position based on the picture scaling factor and the physical parameters of the target camera.
[0014] The above method also includes: when the scaling parameter in the shooting control parameters corresponding to the target image is not equal to one, determining the real-time scaling factor according to the physical parameters of the target camera and the scaling parameter in the shooting control parameters corresponding to the target image; determining the updated picture scaling factor based on the real-time scaling factor and the picture scaling factor; determining the scaling parameter in the shooting control parameters corresponding to the coordinate frame of the preset position based on the updated picture scaling factor and the physical parameters of the target camera.
[0015] The above-mentioned step of determining the shooting control parameters corresponding to the coordinate frame of the preset position includes: controlling the operation of the target camera according to the shooting control parameters corresponding to the target image, so that the current picture of the target camera matches the target image; obtaining the position information of the coordinate frame of the preset position in the target image, and controlling the target camera to adjust the shooting control parameters so that the preset position is displayed in the monitoring image and meets the preset conditions; and associating and saving the preset position and the shooting control parameters of the target camera when the preset position is displayed in the target display area.
[0016] After the step of controlling the target camera to adjust the shooting control parameters so that the preset position is displayed in the monitoring image and the preset conditions are met, the method further includes: saving the monitoring image when the preset position is displayed in the preset target display area.
[0017] In a second aspect, an embodiment of the present disclosure provides a system for configuring camera preset positions in a substation patrol system, the system comprising: a camera determination module, for determining a target camera to be configured according to a distribution position in a target monitoring area in a substation site map, wherein the target camera has a number of preset positions to be configured; a target image shooting module, for controlling a target camera to shoot a target image at a patrol point in the substation patrol system, wherein the target image is a typical scene image containing a target to be patrolled; a preset position identification module, for identifying the preset positions contained in the target image using an image recognition algorithm, and automatically selecting a coordinate frame of the preset positions on the target image; a parameter determination module, for determining shooting control parameters corresponding to the coordinate frame of the preset positions; wherein the shooting control parameters are used to: control the target camera to shoot a monitoring image containing the preset positions, and the preset positions meet preset conditions in the monitoring image; an association saving module, for associating, saving and binding the preset positions and the shooting control parameters corresponding to the coordinate frames of the preset positions to form a patrol preset information of the patrol point.
[0018] The embodiments of the present disclosure bring the following beneficial effects:
[0019] The above provides a method and system for configuring camera preset positions in a substation patrol system, wherein the method includes: determining a target camera to be configured according to the distribution position in the target monitoring area in the substation site map, wherein the target camera has a number of preset positions to be configured; controlling the target camera to shoot a target image at a patrol point in the substation patrol system, wherein the target image is a typical scene image containing the target to be patrolled; using an image recognition algorithm to identify the preset positions contained in the target image, and automatically selecting a coordinate frame of the preset positions on the target image; determining shooting control parameters corresponding to the coordinate frame of the preset positions; wherein the shooting control parameters are used to: control the target camera to shoot a monitoring image containing the preset positions, and the preset positions meet preset conditions in the monitoring image; associating, saving and binding the preset positions and the shooting control parameters corresponding to the coordinate frames of the preset positions to form a patrol preset information of the patrol point. In this method, the target camera is first controlled to capture the target image, and then the preset position contained in the target image is identified, and the shooting control parameters corresponding to the coordinate frame of the preset position are determined, and then the preset position and the shooting control parameters are associated and saved. This method can automatically identify the preset position from the image and determine the shooting control parameters of the preset position without manual setting, which is convenient to operate and improves the setting efficiency.
[0020] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or understood by practicing the present disclosure. The purpose and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0021] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 A schematic diagram of a method for configuring camera preset positions in a substation patrol system provided by an embodiment of the present disclosure;
[0024] Figure 2 A schematic diagram of fitting physical parameters of a target camera provided by an embodiment of the present disclosure;
[0025] Figure 3 A schematic diagram of a preset position displayed in a target image during a process of adjusting a shooting control parameter provided by an embodiment of the present disclosure;
[0026] Figure 4 A logic flow chart for saving preset positions provided in an embodiment of the present disclosure;
[0027] Figure 5 A logic flow chart of a preset position configuration provided by an embodiment of the present disclosure;
[0028] Figure 6 A schematic diagram of a system for configuring camera preset positions in a substation patrol system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0030] At present, video surveillance systems are usually used to monitor specific scene areas. Taking substations as an example, video surveillance systems can monitor the status of equipment in substations by capturing pictures or recording videos with cameras. In order to facilitate monitoring of specific locations in the area, it is necessary to set the preset positions of the camera. In related technologies, manual operation is required to control the rotation of the camera and set the preset positions. When the area is large and there are many preset positions, the manual operation to set the preset positions is cumbersome and the setting efficiency is low. For example, for a 500 kV substation, there are tens of thousands of preset positions. In the video surveillance system of the substation, it is necessary to manually set the preset positions for the cameras one by one. Then it takes about 3 months for one person to complete the setting of the preset positions of a substation.
[0031] Based on the above, the embodiments of the present disclosure provide a method and system for configuring camera preset positions in a substation patrol system. This technology can also be applied to the configuration of camera preset positions in scenes such as petrochemicals and coal mines.
[0032] To facilitate understanding of this embodiment, a specific process of the embodiment of the present disclosure is described below. Figure 1 , an embodiment of a method for configuring camera preset positions in a substation patrol system in an embodiment of the present disclosure includes:
[0033] Step S101, determining a target camera to be configured according to the distribution position in the target monitoring area in the substation site map, wherein the target camera has a plurality of preset positions to be configured;
[0034] The execution subject of the present disclosure may be a terminal or a server, in which an intelligent patrol system is running, and the intelligent patrol system can set preset positions in large quantities by controlling functions such as automatic rotation of cameras and preset position recognition. The following execution subject is described using a terminal as an example, and the terminal is usually an intelligent management terminal.
[0035] Here, the target camera is usually a preset position to be configured, which refers to a selected camera that needs to capture images or record videos.
[0036] Taking the substation as an example, a 2D or 3D image is drawn in advance for the target monitoring area in the substation site map, and the target interval is selected in the image, and the target camera to be configured is selected within a certain range corresponding to the target interval. Usually, a camera has 200 to 300 preset positions, some of which are used by the camera manufacturer, such as 30 preset positions. Then the preset positions other than these 30 preset positions are the preset positions to be configured. In actual application scenarios, some preset positions can be selected from the preset positions to be configured for configuration application.
[0037] Step S102, controlling the target camera to capture a target image at a patrol point in the substation patrol system, wherein the target image is a typical scene image including the target to be patrolled;
[0038] The target to be inspected may generally be target identification information contained in the target image, such as the terminology of commonly used equipment identification plates in a substation.
[0039] Specifically, the terminal can control the target camera to rotate automatically, and control the target camera to take multiple images at the patrol points in the substation patrol system as alternatives. Then, the terminal can automatically filter the candidate images according to the patrol target to obtain the target image containing the patrol target, thereby automatically generating the typical scene map required for the preset position configuration.
[0040] Step S103, using an image recognition algorithm to identify the preset position contained in the target image, and automatically selecting a coordinate frame of the preset position on the target image;
[0041] Here, the preset position can be displayed as a rectangular frame. The preset position usually corresponds to multiple preset position types. Taking the substation as an example, the preset position types can specifically include location status type, meter type, equipment appearance type, etc. Different preset position types include at least one preset position.
[0042] Specifically, the terminal can use the image recognition algorithm in the intelligent patrol system to identify the preset position contained in the target image and obtain the preset position type of the preset position. The terminal can also use the image recognition algorithm to automatically frame the coordinate box of the preset position on the target image and obtain the position information of the preset position in the target image, for example, the position coordinates of multiple target points of the preset position.
[0043] Step S104, determining the shooting control parameters corresponding to the coordinate frame of the preset position; wherein the shooting control parameters are used to: control the target camera to shoot a surveillance image containing the preset position, and the preset position meets a preset condition in the surveillance image;
[0044] The shooting control parameters may specifically include a translation parameter, a tilt parameter, and a zoom parameter.
[0045] Specifically, the terminal can obtain the shooting control parameters corresponding to the coordinate frame of the preset position according to the shooting control parameters corresponding to the target image, the position information of the coordinate frame of the preset position in the target image, and the physical parameters of the target camera, so as to control the target camera to shoot the monitoring image containing the preset position when the preset position meets the preset conditions. The preset conditions may include the proportion of the display area of the preset position in the monitoring image.
[0046] For example, the terminal can determine the translation parameter and tilt parameter of the shooting control parameter corresponding to the preset coordinate frame according to the shooting control parameter corresponding to the target image, the physical parameters of the target camera, and the position information of the preset coordinate frame in the target image. In addition, the zoom parameter of the shooting control parameter corresponding to the preset coordinate frame can be determined according to the shooting control parameter corresponding to the target image, the physical parameters of the target camera, and the preset conditions.
[0047] Step S105 , associating, saving and binding the preset position and the shooting control parameters corresponding to the coordinate frame of the preset position to form a patrol preset information of the patrol point.
[0048] Specifically, in the intelligent patrol system, the terminal associates and saves the shooting control parameters corresponding to the preset position and the coordinate frame of the preset position, and binds them to the target camera, so as to form a patrol preset information of the patrol point. By calling the patrol preset information, the system can control the target camera to capture the image and analyze and identify the image.
[0049] The method for configuring camera preset positions in the above-mentioned substation patrol system determines the target camera to be configured according to the distribution position in the target monitoring area in the substation site map, wherein the target camera has several preset positions to be configured; controls the target camera to shoot the target image at the patrol point in the substation patrol system, wherein the target image is a typical scene image containing the target to be patrolled; uses an image recognition algorithm to identify the preset positions contained in the target image, and automatically selects a coordinate frame of the preset position on the target image; determines the shooting control parameters corresponding to the coordinate frame of the preset position; wherein the shooting control parameters are used to: control the target camera to shoot the monitoring image containing the preset position, and the preset position meets the preset conditions in the monitoring image; associates, saves and binds the preset position and the shooting control parameters corresponding to the coordinate frame of the preset position to form a patrol preset information of the patrol point.
[0050] In this method, the target camera is first controlled to capture the target image, and then the preset position contained in the target image is identified, and the shooting control parameters corresponding to the coordinate frame of the preset position are determined, and then the preset position and the shooting control parameters are associated and saved. This method can automatically identify the preset position from the image and determine the shooting control parameters of the preset position without manual setting, which is convenient to operate and improves the setting efficiency.
[0051] In one method, a target interval is selected from a substation site map; and a target camera to be configured is determined from cameras within a specified range of the target interval.
[0052] Typically, there are multiple intervals in a substation site map. The staff can select at least one target interval from the multiple intervals by operating the terminal device, and obtain all cameras within the specified range according to the specified range of each target interval, such as a circle with a radius of 5 meters. The staff can then select the target camera to be configured.
[0053] In one method, the target camera is controlled to rotate, and the target camera is controlled to capture multiple candidate images during the rotation process; the target to be inspected is identified from the multiple candidate images, and the candidate image containing the target to be inspected is determined as the target image.
[0054] Specifically, the system automatically controls the target camera to rotate according to the step length, displays the camera image on the terminal screen through multi-channel video stitching, and controls the target camera to capture images in real time during the rotation process to obtain multiple candidate images. Among them, the camera step length is used to indicate the distance the pan / tilt head moves in the horizontal and vertical directions, usually expressed in degrees.
[0055] Next, taking the substation as an example, the system can input multiple alternative images into the artificial intelligence analysis model, automatically identify the target to be inspected from the multiple alternative images, and output the alternative image containing the target to be inspected, which is the target image.
[0056] Optionally, each time multiple candidate images taken by the target camera are obtained, they are input into an artificial intelligence analysis model, and artificial intelligence deep learning is used to screen images that meet the requirements.
[0057] In one method, based on a preset type of preset position, an image recognition algorithm is used to identify the preset position contained in the target image; wherein the preset position type includes: at least one of a position status preset position, a meter type preset position, and a device appearance preset position.
[0058] Specifically, the system can identify the preset positions included in the target image using the image recognition algorithm in the artificial intelligence analysis model according to the preset preset position type.
[0059] Further, when the preset position type includes position status preset positions, the position status preset positions include: at least one preset position of pressure plate status, air switch status, and indicator light status; when the preset position type includes meter type preset positions, the meter type preset positions include: at least one preset position of pressure gauge, oil temperature gauge, and leakage current meter; when the preset position type includes equipment appearance preset positions, the equipment appearance preset positions include: at least one preset position of bird's nest, oil stains, and damaged dial.
[0060] In one method, the target image is input into a pre-trained image recognition module, the preset position contained in the target image is recognized by the image recognition model, and a coordinate box of the preset position is selected on the target image.
[0061] The image recognition module can be obtained by training the YOLOv8 target detection model. For example, the equipment identification plates in the substation and the commonly used identification plate terms in the substation are input into the YOLOv8 target detection model for training to obtain the substation identification plate positioning and content recognition algorithm.
[0062] Specifically, if the target image is input into a pre-trained image recognition module, then in the output target image, a rectangular frame can be used to select the position of the preset position, and the coordinates of the target point corresponding to the coordinate frame of the preset position can be displayed.
[0063] The following provides an embodiment of determining the shooting control parameters corresponding to the coordinate frame of the preset position.
[0064] In one approach, the shooting control parameters corresponding to the preset position coordinate frame are determined based on the shooting control parameters corresponding to the target image, the position information of the preset position coordinate frame in the target image, and the physical parameters of the target camera.
[0065] The shooting control parameters corresponding to the target image are usually the initial state data of the camera. The shooting control parameters corresponding to the coordinate frame of the preset position are usually the final state data of the camera. The shooting control parameters can be PTZ data, where P represents the movement in the horizontal direction, that is, the translation parameter, T represents the movement in the vertical direction, that is, the tilt parameter, and Z represents the zoom capability of the camera lens, that is, the scaling parameter.
[0066] The position information of the preset coordinate frame in the target image is usually the coordinates of the diagonal vertices of the rectangular frame corresponding to the preset coordinate frame, such as the vertex coordinates of the upper left corner and the lower right corner of the rectangular frame, or the vertex coordinates of the upper right corner and the lower left corner.
[0067] The physical parameters of the target camera may include a horizontal axis fixed coefficient, a horizontal axis fixed step, a vertical axis fixed coefficient, a vertical axis fixed step, a zoom fixed coefficient, and a zoom fixed step.
[0068] For example, Figure 2 In (a), (b), and (c), the functional relationship between the dependent variable y and the independent variable x is obtained through fitting calculation, such as the direct proportional function y=kx+b in (c), and the inverse proportional function y=k / x+b in (a) and (b). The physical parameters of the target camera are obtained through fitting calculation of multiple samples.
[0069] Specifically, the terminal can obtain the physical parameters of the target camera based on the shooting control parameters corresponding to the target image and the position information of the preset position coordinate frame in the target image, and then reversely deduce the shooting control parameters corresponding to the preset position coordinate frame in combination with the proportion of the preset position in the monitoring image.
[0070] The above-mentioned preset conditions include: the area ratio of the display area of the preset position in the monitoring image; the above-mentioned shooting control parameters include: translation parameters, tilt parameters and zoom parameters; in one method, based on the position information of the coordinate frame of the preset position in the target image, the physical parameters of the target camera, and the shooting control parameters corresponding to the target image, the translation parameters and tilt parameters in the shooting control parameters corresponding to the coordinate frame of the preset position are determined; based on the shooting control parameters corresponding to the target image, the physical parameters of the target camera and the area ratio, the zoom parameters in the shooting control parameters corresponding to the coordinate frame of the preset position are determined.
[0071] Specifically, the offset value is calculated based on the position information of the preset coordinate frame in the target image, the physical parameters of the target camera, and the zoom parameter in the shooting control parameter corresponding to the target image. The translation parameter or tilt parameter in the shooting control parameter corresponding to the preset coordinate frame is calculated based on the offset value and the translation parameter or tilt parameter in the shooting control parameter corresponding to the target image.
[0072] In one example, Figure 3 The initial state of (a) in the figure represents the initial position information of the preset coordinate frame in the target image, that is, the preset coordinate frame; the initial state is transformed horizontally and vertically according to the translation parameter or the tilt parameter to obtain Figure 3 The intermediate state of (b) in the figure represents the position information of the display area of the preset position after it moves in the horizontal and vertical directions. This process transforms the position of the coordinate frame in the horizontal and vertical directions, that is, transforms the coordinate frame horizontally and vertically.
[0073] Furthermore, the camera image zoom value is calculated according to the area ratio of the display area of the preset position in the monitoring image and the offset value of the target camera. When the camera image zoom value is equal to one, or the camera image zoom value is not equal to one, the zoom parameter in the shooting control parameter corresponding to the coordinate frame of the preset position is determined according to the camera image zoom value and the physical parameters of the target camera.
[0074] In one example, Figure 3 Based on the intermediate state of (b) in the figure, the length and width of the intermediate state are scaled according to the scaling parameter to obtain Figure 3 The final state of (c) in FIG. 1 represents the area ratio of the display area of the preset position in the monitoring image, that is, the target object ratio box.
[0075] The position information of the above-mentioned preset coordinate frame in the target image includes: the first coordinate of the first vertex of the rectangular frame corresponding to the preset coordinate frame in the target image, and the second coordinate of the second vertex in the target image; the first vertex and the second vertex are diagonal vertices to each other; in one method, based on the first coordinate and the second coordinate, the coordinate offset is determined; based on the physical parameters of the target camera and the zoom parameters in the shooting control parameters corresponding to the target image, the offset coefficient is determined; based on the translation parameters, coordinate offset and offset coefficient in the shooting control parameters corresponding to the target image, the translation parameters in the shooting control parameters corresponding to the preset coordinate frame are determined; based on the tilt parameters, coordinate offset and offset coefficient in the shooting control parameters corresponding to the target image, the tilt parameters in the shooting control parameters corresponding to the preset coordinate frame are determined.
[0076] Here, the first vertex may be the vertex at the upper left corner of the rectangular frame, and the second vertex may be the vertex at the lower right corner of the rectangular frame. Assume that the first coordinate in the target image is (x1, y1) and the second coordinate in the target image is (x2, y2).
[0077] Specifically, the offset can be divided into a horizontal axis offset and a vertical axis offset. The horizontal axis offset of the rectangular frame is calculated by the formula change_x=0.5-(x1+x2) / 2, and the vertical axis offset of the rectangular frame is calculated by the formula change_y=0.5-(y1+y2) / 2.
[0078] The offset coefficient can be divided into the horizontal axis offset coefficient and the vertical axis offset coefficient, which is expressed by the formula x_rate =
[0079] The horizontal axis offset coefficient of the target camera is calculated by k_x_rate / z+b_x_rate, and the vertical axis offset coefficient of the target camera is calculated by the formula y_rate=k_y_rate / z+b_y_rate. Among them, z is the scaling parameter in the shooting control parameters corresponding to the target image, k_x_rate and b_x_rate are the horizontal axis fixed coefficient and horizontal axis fixed step length in the physical parameters of the target camera, respectively, and k_y_rate and b_y_rate are the vertical axis fixed coefficient and vertical axis fixed step length in the physical parameters of the target camera, respectively.
[0080] Next, the translation parameter in the shooting control parameter corresponding to the preset coordinate frame is calculated by the formula new_p=p+x_rate*change_x, where p is the translation parameter in the shooting control parameter corresponding to the target image, change_x is the horizontal axis offset of the rectangular frame, and x_rate is the horizontal axis offset coefficient of the target camera.
[0081] Furthermore, the tilt parameter in the shooting control parameter corresponding to the preset coordinate frame is calculated by the formula new_t=t+y_rate*change_y, where t is the tilt parameter in the shooting control parameter corresponding to the target image, change_y is the longitudinal axis offset of the rectangular frame, and y_rate is the longitudinal axis offset coefficient of the target camera.
[0082] In one method, the picture zoom factor is determined based on the area ratio and the offset coefficient of the target camera; when the zoom parameter in the shooting control parameters corresponding to the target image is equal to one, the zoom parameter in the shooting control parameters corresponding to the coordinate frame of the preset position is determined based on the picture zoom factor and the physical parameters of the target camera.
[0083] Specifically, the image scaling factor is calculated by the formula scale = tp / max(x, y), where max(x, y) is the maximum value of the offset coefficients x_rate, y_rate of the target camera, and tp is the area ratio of the display area of the preset position in the monitoring image.
[0084] When the scaling parameter z in the shooting control parameters corresponding to the target image is equal to 1, the scaling parameter in the shooting control parameters corresponding to the coordinate frame of the preset position is calculated by the formula new_z=(scale-b_scale) / k_scale, where k_scale and b_scale are the scaling fixed coefficient and the scaling fixed step length in the physical parameters of the target camera, respectively.
[0085] In another method, when the zoom parameter in the shooting control parameters corresponding to the target image is not equal to one, the real-time zoom factor is determined according to the physical parameters of the target camera and the zoom parameter in the shooting control parameters corresponding to the target image; the updated picture zoom factor is determined based on the real-time zoom factor and the picture zoom factor; the zoom parameter in the shooting control parameters corresponding to the coordinate frame of the preset position is determined based on the updated picture zoom factor and the physical parameters of the target camera.
[0086] Specifically, when the scaling parameter z in the shooting control parameters corresponding to the target image is not equal to 1, the real-time scaling factor is calculated by the formula current_scale=k_scale*z+b_scale. Then, the updated image scaling factor is calculated by the formula new_scale=current_scale*scale. Finally, the scaling parameter in the shooting control parameters corresponding to the coordinate frame of the preset position is calculated by the formula new_z=(new_scale-b_scale) / k_scale.
[0087] In one method, the target camera is controlled to operate according to the shooting control parameters corresponding to the target image, so that the current image of the target camera matches the target image; the position information of the coordinate frame of the preset position in the target image is obtained, and the target camera is controlled to adjust the shooting control parameters so that the preset position is displayed in the monitoring image and meets the preset conditions; the preset position and the shooting control parameters of the target camera when the preset position is displayed in the target display area are associated and saved.
[0088] Specifically, after the terminal controls the target camera to start, it operates according to the shooting control parameters corresponding to the stored target image, so that the current picture displayed in the target camera is consistent with the target image.
[0089] Next, the IPC (Inter-Process Communication) interface is called to obtain the position information of the preset position coordinate frame in the target image. Through the input preset position vertex coordinates, the target camera is controlled to adjust the shooting control parameters, so that the target camera changes the zoom factor and focuses on the local position of the pre-selected target device, and displays the preset position in the monitoring image according to the preset conditions.
[0090] Finally, the preset position and the shooting control parameters of the target camera are associated and saved when the preset position is displayed at the local position of the target device, that is, a preset position is added to the system. Optionally, if there are multiple preset positions, the multiple preset position information can be batch-encapsulated into a preset position standard format according to TCP (Transmission Control Protocol) and stored in the target camera.
[0091] In one method, a monitoring image when a preset position is displayed in a preset target display area is saved.
[0092] Specifically, if the preset position is displayed in a preset target display area in the monitoring image, the terminal can take a screenshot of the screen and save the monitoring image at the current moment to the system.
[0093] Figure 4 Taking the substation as an example, the specific implementation method of saving preset positions is introduced.
[0094] Step S401, scanning the target image in sequence and generating a task queue;
[0095] Specifically, the system generates a task and puts it in the queue of tasks to be executed, and the terminal executes the tasks in the queue in the order in which they were added.
[0096] Step S402, query the task queue;
[0097] Specifically, during the process of the terminal executing the task, the shooting control parameters associated with the target image are called to make the target camera return to the normal position, and the current picture of the target camera is kept consistent with the target image.
[0098] Step S403, whether there are any tasks left;
[0099] If there are still tasks in the queue, then execute step S404; if there are no tasks in the queue, then execute step S407.
[0100] Step S404, controlling the target camera to adjust shooting control parameters according to the position information of the preset coordinate frame in the target image;
[0101] Specifically, the terminal calls the IPC interface and controls the target camera to adjust the zoom ratio and focus on the pre-selected local position of the target device through the incoming position information.
[0102] Step S405, associating, saving and binding the shooting control parameters corresponding to the preset position and its coordinate frame;
[0103] Specifically, the terminal obtains the position information of the coordinate frame of the current preset position in the target image, and simultaneously takes a screenshot of the current screen of the target camera and stores it in the system, that is, adding a preset position.
[0104] Step S406, resetting the camera;
[0105] The terminal calls the shooting control parameters associated with the target image to control the target camera to return to the normal position, and then returns to step S402.
[0106] Step S407, end.
[0107] Figure 5 Taking the substation as an example, the specific implementation method of the preset position configuration is introduced.
[0108] Step S501, obtaining the distribution position in the target monitoring area and determining the target camera;
[0109] Specifically, according to the substation plant, bays and site plan, at least one bay is selected as the target bay, all cameras in a specified range around the target bay are acquired on the plan, and then the target camera is determined.
[0110] Step S502, taking multiple candidate images;
[0111] Specifically, the system enables the target camera, and controls the target camera to rotate and capture images according to a specific step size. After obtaining multiple candidate images, the multiple candidate images are transmitted to a preset algorithm model.
[0112] Step S503, confirming whether the candidate image contains the target to be inspected;
[0113] The algorithm model receives multiple candidate images, performs recognition analysis on the multiple candidate images, and if a sign is recognized, saves it as a target image and executes step S505. If no sign is recognized, the candidate images are filtered out and step S504 is executed.
[0114] Step S504, calling the next target camera;
[0115] Return to execute step S502.
[0116] Step S505, identifying the preset position contained in the target image;
[0117] Specifically, the system uses a rectangular frame to automatically select a preset position on the target image.
[0118] Step S506, whether the recognition is successful;
[0119] If the recognition is successful, execute step S507; if the recognition is not successful, execute step S510.
[0120] Step S507, outputting the position information of the preset coordinate frame in the target image;
[0121] According to the AI analysis algorithm, a rectangular frame is used to select multiple preset positions in the target image.
[0122] Step S508, determining the shooting control parameters corresponding to the coordinate frame of the preset position;
[0123] Specifically, the terminal transmits the position information, area ratio, and shooting control parameters of the preset coordinate frame in the target image to the algorithm model, and calculates the shooting control parameters corresponding to the preset coordinate frame by combining the algorithm model with the physical parameters of the target camera.
[0124] Step S509, associating, saving and binding the shooting control parameters corresponding to the preset position and its coordinate frame;
[0125] Step S510, end.
[0126] Corresponding to the above method embodiment, see Figure 6 A schematic diagram of a camera preset position configuration system in a substation patrol system is shown, the system comprising:
[0127] The camera determination module 601 is used to determine the target camera to be configured according to the distribution position in the target monitoring area in the substation site map, wherein the target camera has a plurality of preset positions to be configured;
[0128] The target image shooting module 602 is used to control the target camera to shoot a target image at the patrol point in the substation patrol system, wherein the target image is a typical scene image containing the target to be patrolled;
[0129] The preset position recognition module 603 is used to recognize the preset position contained in the target image by using an image recognition algorithm, and automatically select a coordinate frame of the preset position on the target image;
[0130] The parameter determination module 604 is used to determine the shooting control parameters corresponding to the coordinate frame of the preset position; wherein the shooting control parameters are used to control the target camera to shoot the monitoring image containing the preset position, and the preset position meets the preset conditions in the monitoring image;
[0131] The association saving module 605 is used to associate, save and bind the preset position and the shooting control parameters corresponding to the coordinate frame of the preset position to form a patrol preset information of the patrol point.
[0132] The configuration system of camera preset positions in the above-mentioned substation patrol system determines the target camera to be configured according to the distribution position in the target monitoring area in the substation site map, wherein the target camera has several preset positions to be configured; controls the target camera to shoot the target image at the patrol point in the substation patrol system, wherein the target image is a typical scene image containing the target to be patrolled; uses an image recognition algorithm to identify the preset positions contained in the target image, and automatically selects a coordinate frame of the preset position on the target image; determines the shooting control parameters corresponding to the coordinate frame of the preset position; wherein the shooting control parameters are used to: control the target camera to shoot the monitoring image containing the preset position, and the preset position meets the preset conditions in the monitoring image; associates, saves and binds the preset position and the shooting control parameters corresponding to the coordinate frame of the preset position to form a patrol preset information of the patrol point.
[0133] In this method, the target camera to be configured is first controlled to capture the target image, then the preset position contained in the target image is identified, and the shooting control parameters corresponding to the coordinate frame of the preset position are determined, and then the preset position and the shooting control parameters are associated and saved, which promotes the application of intelligent patrol, simplifies the operation of setting preset positions for the camera, and improves the setting efficiency.
[0134] The camera determination module is further used to select a target interval from the substation site map; and determine the target camera to be configured from the cameras within a specified range of the target interval.
[0135] The target image shooting module is also used to control the target camera to rotate, and control the target camera to shoot multiple candidate images during the rotation process; identify the target to be inspected from the multiple candidate images, and determine the candidate image containing the target to be inspected as the target image.
[0136] The preset position recognition module is also used to recognize the preset position contained in the target image based on the preset position type set in advance by using the image recognition algorithm; wherein the preset position type includes: at least one of the position status preset position, meter type preset position, and equipment appearance preset position.
[0137] When the above-mentioned preset position types include position status preset positions, the position status preset positions include: at least one preset position of pressure plate status, air switch status, and indicator light status; when the above-mentioned preset position types include meter type preset positions, the meter type preset positions include: at least one preset position of pressure gauge, oil temperature gauge, and leakage current meter; when the above-mentioned preset position types include equipment appearance preset positions, the equipment appearance preset positions include: at least one preset position of bird's nest, oil stain, and damaged dial.
[0138] The preset position recognition module is further used to input the target image into a pre-trained image recognition model, recognize the preset positions contained in the target image through the image recognition model, and select a coordinate frame of the preset position on the target image.
[0139] The parameter determination module is further used to determine the shooting control parameters corresponding to the preset coordinate frame based on the shooting control parameters corresponding to the target image, the position information of the preset coordinate frame in the target image and the physical parameters of the target camera.
[0140] The above-mentioned preset conditions include: the area ratio of the display area of the preset position in the monitoring image; the shooting control parameters include: translation parameters, tilt parameters and zoom parameters; the above-mentioned parameter determination module is also used to determine the translation parameters and tilt parameters in the shooting control parameters corresponding to the coordinate frame of the preset position based on the position information of the coordinate frame of the preset position in the target image, the physical parameters of the target camera, and the shooting control parameters corresponding to the target image; determine the zoom parameters in the shooting control parameters corresponding to the coordinate frame of the preset position based on the shooting control parameters corresponding to the target image, the physical parameters of the target camera and the area ratio.
[0141] The position information of the above-mentioned preset coordinate frame in the target image includes: the first coordinate of the first vertex of the rectangular frame corresponding to the preset coordinate frame in the target image, and the second coordinate of the second vertex in the target image; the first vertex and the second vertex are diagonal vertices to each other; the above-mentioned parameter determination module is also used to determine the coordinate offset based on the first coordinate and the second coordinate; determine the offset coefficient based on the physical parameters of the target camera and the zoom parameters in the shooting control parameters corresponding to the target image; determine the translation parameters in the shooting control parameters corresponding to the preset coordinate frame based on the translation parameters, coordinate offset and offset coefficient in the shooting control parameters corresponding to the target image; determine the tilt parameters in the shooting control parameters corresponding to the preset coordinate frame based on the tilt parameters, coordinate offset and offset coefficient in the shooting control parameters corresponding to the target image.
[0142] The above-mentioned parameter determination module is also used to determine the picture zoom factor based on the area ratio and the offset coefficient of the target camera; when the zoom parameter in the shooting control parameters corresponding to the target image is equal to one, the zoom parameter in the shooting control parameters corresponding to the coordinate frame of the preset position is determined based on the picture zoom factor and the physical parameters of the target camera.
[0143] The above system also includes a second parameter determination module, which is used to determine the real-time zoom factor according to the physical parameters of the target camera and the zoom parameter in the shooting control parameters corresponding to the target image when the zoom parameter in the shooting control parameters corresponding to the target image is not equal to one; determine the updated picture zoom factor based on the real-time zoom factor and the picture zoom factor; determine the zoom parameter in the shooting control parameters corresponding to the coordinate frame of the preset position based on the updated picture zoom factor and the physical parameters of the target camera.
[0144] The above-mentioned parameter determination module is also used to control the operation of the target camera according to the shooting control parameters corresponding to the target image, so that the current picture of the target camera matches the target image; obtain the position information of the coordinate frame of the preset position in the target image, and control the target camera to adjust the shooting control parameters so that the preset position is displayed in the monitoring image and meets the preset conditions; the preset position and the shooting control parameters of the target camera when the preset position is displayed in the target display area are associated and saved.
[0145] The above system also includes a monitoring image saving module, which is used to save the monitoring image when the preset position is displayed in the preset target display area.
[0146] The above embodiments of the present disclosure have the following advantages:
[0147] This embodiment uses AI algorithms to identify the substation interval identification equipment, control the camera to automatically rotate, capture typical scene images, and then Figure 1The coordinate frame of the preset position is automatically selected once, and the shooting control parameters corresponding to the coordinate frame of the preset position are calculated based on the self-developed algorithm. Then, according to the position information of the coordinate frame, the camera shooting control parameters are cyclically called to quickly generate the preset position, which greatly improves the efficiency of preset position configuration.
[0148] This embodiment uses target images to batch configure preset positions and synchronizes them to the standard pan-tilt head through the TCP protocol; it solves the technical problems in the prior art that the preset position configuration in substation cameras is complex, inefficient, and has poor versatility, thereby achieving a technical effect of simple and easy operation, high efficiency, and strong versatility, greatly improving the efficiency of substation preset position configuration and promoting the engineering application of intelligent patrol.
[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0150] In addition, in the description of the embodiments of the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0151] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, 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 several 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 disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0152] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0153] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, those skilled in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for configuring camera preset positions in a substation patrol system, characterized in that: The method comprises: Determine a target camera to be configured according to the distribution position in the target monitoring area in the substation site map, wherein the target camera has a plurality of preset positions to be configured; Controlling the target camera to capture a target image at a patrol point in the substation patrol system, wherein the target image is a typical scene image containing a target to be patrolled; Using an image recognition algorithm to identify the preset position contained in the target image, and automatically selecting a coordinate frame of the preset position on the target image; Determine the shooting control parameters corresponding to the coordinate frame of the preset position; wherein the shooting control parameters are used to: control the target camera to shoot a surveillance image containing the preset position, and the preset position satisfies a preset condition in the surveillance image; The preset position and the shooting control parameters corresponding to the coordinate frame of the preset position are associated, saved and bound to form a patrol preset information of the patrol point.
2. The method according to claim 1, characterized in that The steps of determining the target camera to be configured according to the distribution position in the target monitoring area in the substation site map include: Select the target bay from the substation site map; A target camera to be configured is determined from cameras within a specified range of the target interval.
3. The method according to claim 1, characterized in that: The step of controlling the target camera to capture the target image at the patrol point in the substation patrol system comprises: Controlling the target camera to rotate, and controlling the target camera to capture multiple candidate images during the rotation process; The target to be inspected is identified from the multiple candidate images, and the candidate image containing the target to be inspected is determined as the target image.
4. The method according to claim 1, characterized in that: The step of using an image recognition algorithm to identify the preset position contained in the target image includes: Based on the preset position type, the preset position contained in the target image is identified using an image recognition algorithm; wherein the preset position type includes: at least one of a position status preset position, a meter type preset position, and a device appearance preset position.
5. The method according to claim 4, characterized in that When the preset position type includes a position state preset position, the position state preset position includes: at least one preset position of a pressure plate state, an air switch state, and an indicator light state; When the preset position type includes a meter preset position, the meter preset position includes: at least one preset position of a pressure gauge, an oil temperature gauge, and a leakage current meter; When the preset position type includes a device appearance preset position, the device appearance preset position includes at least one of a bird's nest, oil stain, and a damaged dial.
6. The method according to claim 1, characterized in that The step of using an image recognition algorithm to identify the preset position contained in the target image and automatically selecting a coordinate frame of the preset position on the target image includes: The target image is input into a pre-trained image recognition model, the preset position contained in the target image is recognized by the image recognition model, and a coordinate frame of the preset position is selected on the target image.
7. The method according to claim 1, characterized in that The step of determining the shooting control parameters corresponding to the coordinate frame of the preset position includes: The shooting control parameters corresponding to the coordinate frame of the preset position are determined based on the shooting control parameters corresponding to the target image, the position information of the coordinate frame of the preset position in the target image, and the physical parameters of the target camera.
8. The method according to claim 7, characterized in that The preset conditions include: the area ratio of the display area of the preset position in the monitoring image; the shooting control parameters include: translation parameters, tilt parameters and zoom parameters; The step of determining the shooting control parameters corresponding to the preset position coordinate frame based on the shooting control parameters corresponding to the target image, the position information of the preset position coordinate frame in the target image, and the physical parameters of the target camera comprises: Determine the translation parameter and the tilt parameter in the shooting control parameters corresponding to the coordinate frame of the preset position based on the position information of the coordinate frame of the preset position in the target image, the physical parameters of the target camera, and the shooting control parameters corresponding to the target image; Based on the shooting control parameters corresponding to the target image, the physical parameters of the target camera and the area proportion, a scaling parameter in the shooting control parameters corresponding to the coordinate frame of the preset position is determined.
9. The method according to claim 8, characterized in that The position information of the preset coordinate frame in the target image includes: the first coordinate of the first vertex of the rectangular frame body corresponding to the preset coordinate frame in the target image, and the second coordinate of the second vertex in the target image; the first vertex and the second vertex are diagonal vertices to each other; The step of determining the translation parameter and the tilt parameter in the shooting control parameters corresponding to the coordinate frame of the preset position based on the position information of the coordinate frame of the preset position in the target image, the physical parameters of the target camera, and the shooting control parameters corresponding to the target image comprises: Determine a coordinate offset based on the first coordinate and the second coordinate; Determining an offset coefficient based on physical parameters of the target camera and a scaling parameter in the shooting control parameters corresponding to the target image; Determine the translation parameter in the shooting control parameter corresponding to the coordinate frame of the preset position based on the translation parameter in the shooting control parameter corresponding to the target image, the coordinate offset and the offset coefficient; The tilt parameter in the shooting control parameter corresponding to the coordinate frame of the preset position is determined based on the tilt parameter in the shooting control parameter corresponding to the target image, the coordinate offset and the offset coefficient.
10. The method according to claim 8, characterized in that The step of determining a scaling parameter in the shooting control parameter corresponding to the coordinate frame of the preset position based on the shooting control parameter corresponding to the target image, the physical parameters of the target camera, and the area proportion includes: Determining a picture zoom factor based on the area ratio and the offset coefficient of the target camera; When the scaling parameter in the shooting control parameters corresponding to the target image is equal to one, the scaling parameter in the shooting control parameters corresponding to the coordinate frame of the preset position is determined based on the image scaling factor and the physical parameters of the target camera.
11. The method according to claim 10, characterized in that The method further comprises: When the scaling parameter in the shooting control parameters corresponding to the target image is not equal to one, determining a real-time scaling factor according to the physical parameters of the target camera and the scaling parameter in the shooting control parameters corresponding to the target image; Determining an updated picture zoom factor based on the real-time zoom factor and the picture zoom factor; Based on the updated picture zoom factor and the physical parameters of the target camera, a zoom parameter in the shooting control parameter corresponding to the coordinate frame of the preset position is determined.
12. The method according to claim 1, characterized in that The step of determining the shooting control parameters corresponding to the coordinate frame of the preset position includes: Controlling the target camera to operate according to the shooting control parameters corresponding to the target image, so that the current picture of the target camera matches the target image; Acquire the position information of the coordinate frame of the preset position in the target image, and control the target camera to adjust the shooting control parameters so that the preset position is displayed in the monitoring image and satisfies the preset conditions; The preset position and the shooting control parameters of the target camera when the preset position is displayed in the target display area are associated and saved.
13. The method according to claim 12, characterized in that After the step of controlling the target camera to adjust the shooting control parameters so that the preset position is displayed in the monitoring image and the preset condition is met, the method further includes: The monitoring image when the preset position is displayed in the preset target display area is saved.
14. A camera preset position configuration system in a substation patrol system, characterized in that: The system comprises: A camera determination module, used to determine a target camera to be configured according to a distribution position in a target monitoring area in a substation site map, wherein the target camera has a plurality of preset positions to be configured; A target image shooting module, used for controlling the target camera to shoot a target image at a patrol point in the substation patrol system, wherein the target image is a typical scene image containing a target to be patrolled; A preset position recognition module, used to recognize the preset position contained in the target image by using an image recognition algorithm, and automatically select a coordinate frame of the preset position on the target image; A parameter determination module, used to determine the shooting control parameters corresponding to the coordinate frame of the preset position; wherein the shooting control parameters are used to: control the target camera to shoot a monitoring image containing the preset position, and the preset position meets a preset condition in the monitoring image; The association saving module is used to associate, save and bind the preset position and the shooting control parameters corresponding to the coordinate frame of the preset position to form a patrol preset information of the patrol point.
Citation Information
Patent Citations
Target positioning method, device and facility of inspection operation robot and storage medium
CN113733100A
Patrol route generation method and equipment based on pan-tilt camera, and medium
CN114785961A
Automatic camera calibration method
US20030156189A1
Cited By
Inspection data processing method and system of smart substation integrated monitoring system
CN122715098B