A monitoring camera patrol posture calculation method and system based on a three-dimensional algorithm

By using 3D algorithms and digital twin technology to calculate the patrol posture of surveillance cameras, the difficulties in the automated patrol point debugging of surveillance cameras have been solved, achieving fast and accurate posture calculation and reducing the complexity and time cost of manual operation.

CN116828167BActive Publication Date: 2026-11-20CSG EHV POWER TRANSMISSION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310442958.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2026-11-20
Estimated Expiration
2043-04-21

AI Technical Summary

Technical Problem

The existing automated inspection and debugging of surveillance cameras requires manual operation, which is time-consuming and labor-intensive. Furthermore, it is difficult to replace damaged surveillance cameras, which cannot ensure safe production.

Method used

A method for calculating the patrol posture of a surveillance camera based on a 3D algorithm is adopted. By using digital twin technology, a twin relationship between the surveillance camera and the digital twin camera is established in a 3D scene to calculate the patrol posture of the surveillance camera.

Benefits of technology

It enables rapid and automatic calculation of the patrol posture of monitoring cameras, reducing the difficulty of operation and debugging time, and helping to improve production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116828167B_ABST
    Figure CN116828167B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of automatic inspection, and discloses a monitoring camera inspection posture calculation method and system based on a three-dimensional algorithm, which establishes the twin relationship between the digital twin monitoring camera in the three-dimensional scene and the monitoring camera in the real scene through digital twin technology, so that the posture of the monitoring camera and the digital twin camera can be synchronized, the inspection posture of the monitoring camera can be quickly and automatically solved, the operation difficulty is reduced, the debugging time is shortened, and thus the production is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automated inspection technology, and in particular to a method and system for calculating the inspection posture of a surveillance camera based on a three-dimensional algorithm. Background Technology

[0002] With the rapid development of artificial intelligence image recognition technology, the use of AI image recognition technology based on monitoring cameras in the power grid business is of great significance. It can realize automated inspection of various links such as power generation, transmission, transformation and distribution, timely detection of equipment defects, elimination of safety hazards in the bud, and alleviate several major problems in power grid business, such as difficulty in detecting equipment defects, high cost, and inability to automatically generate electronic data.

[0003] Currently, automated inspection of surveillance camera locations is achieved through manual adjustments. This requires manual on-site operation of each camera to individually inspect and adjust the locations, which is not only difficult but also time-consuming and repetitive. Furthermore, surveillance cameras are low-cost consumables. Whether damaged by daily wear and tear or by natural disasters such as typhoons and heavy rains, replacing cameras using traditional camera adjustment methods to re-establish the inspection locations and orientations of new cameras is not only labor-intensive but also time-consuming, compromising safe production.

[0004] Twin cameras, and extract the digital twin images.

[0005] The above information is provided as background information only to aid in understanding this disclosure and does not constitute an assertion or admission that any of the above content can be used as prior art relative to this disclosure. Summary of the Invention

[0006] This invention provides a method and system for calculating the patrol posture of a surveillance camera based on a three-dimensional algorithm, so as to quickly and automatically calculate the patrol posture of the surveillance camera in a real scene.

[0007] To achieve the above objectives, the present invention provides the following technical solution:

[0008] In a first aspect, the present invention provides a method for calculating the patrol posture of a surveillance camera based on a three-dimensional algorithm, the method comprising:

[0009] Based on the deployment location of surveillance cameras in the real scene, place digital twin cameras at the same location in the three-dimensional scene, and extract the three-dimensional spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin cameras.

[0010] Adjust the attitude of the monitoring camera to 0 degrees, obtain the attitude value T0(P0, Y0), and obtain the center point of the image of the monitoring camera.

[0011] Rotate the digital twin camera until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, so as to adjust the digital twin camera to a 0-degree attitude, obtain the attitude value R0(S0, Q0), and obtain the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera.

[0012] Control the monitoring camera to adjust to at least two postures, and acquire the posture value T corresponding to each posture. N (P N Y N );

[0013] The digital twin camera is controlled to adjust to at least two poses that correspond one-to-one with at least two poses of the monitoring camera, and the pose value R corresponding to each pose is obtained. N (R N Q N );

[0014] Based on the twin relationship between the surveillance camera and the digital twin camera, using formula P n =P0+△A(S) n -S0)+△B(Q n -Q0) and Y n =Y0+△C(S) n -S0)+△D(Q n -Q0), calculate the interpolation factor {△A, △B, △C, △D} between the surveillance camera and the digital twin camera in a unit direction, and persistently store the interpolation factor;

[0015] The digital twin camera is selected and associated with the inspection points to be inspected, and the three-dimensional spatial coordinates TPos(X) of each inspection point are obtained. T Y T Z T ), and use R n (S n Q n = (((TPos-CamPos).normalized-VF.normalized).x, ((TPos-CamPos).normalized-VF.normalized).y), calculate the attitude of the digital twin camera when it inspects the inspection point;

[0016] The interpolation factor and formula T are used to calculate the interpolation factor. n (P nY n )=((P0+△A(S n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Q n -Q0))), reconstruct and calculate the patrol posture value of the monitoring camera when it patrols the patrol point.

[0017] Furthermore, in the method for calculating the patrol posture of a surveillance camera based on a 3D algorithm, before the step of placing a digital twin camera at the same position in the 3D scene according to the deployment position of the surveillance camera in the real scene, and extracting the 3D spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin camera, the method further includes:

[0018] Build a 3D scene.

[0019] Furthermore, in the method for calculating the patrol posture of a surveillance camera based on a 3D algorithm, the steps of adjusting the posture of the surveillance camera to a 0-degree posture, obtaining the posture value T0(P0, Y0), and obtaining the center point of the surveillance camera's image include:

[0020] The attitude of the monitoring camera is adjusted to 0 degrees using a remote control, the attitude value T0(P0, Y0) is obtained, and the center point of the monitoring camera's image is obtained.

[0021] Furthermore, in the method for calculating the patrol posture of a surveillance camera based on a 3D algorithm, the steps of rotating the digital twin camera until the center point of the digital twin camera's image coincides with the center point of the surveillance camera's image to adjust the digital twin camera to a 0-degree posture, obtaining the posture value R0(S0, Q0), and obtaining the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera include:

[0022] The digital twin camera is rotated using a model selection method in the 3D scene until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, thereby adjusting the digital twin camera to a 0-degree pose, obtaining the pose value R0(S0, Q0), and using the 3D scene's built-in engine algorithm transform.forward to obtain the orientation vector VF(V0, W0, U0) of the camera body's Y kernel.

[0023] Furthermore, in the method for calculating the patrol posture of a monitoring camera based on a 3D algorithm, the monitoring camera is controlled to adjust at least two postures, and the posture value T corresponding to each posture is obtained. N (P N Y NIn the steps of ), a set distance is spaced between two adjacent poses.

[0024] Furthermore, in the method for calculating the patrol posture of a surveillance camera based on a 3D algorithm, the digital twin camera is controlled to adjust to at least two postures that correspond one-to-one with at least two postures of the surveillance camera, and the posture value R corresponding to each posture is obtained. N (R N Q N The steps include:

[0025] By controlling the X-axis rotation of the camera body's X-shell and the Y-axis rotation of the camera's local Y-core, the digital twin camera is controlled to adjust to at least two postures that correspond one-to-one with at least two postures of the monitoring camera, and the posture value R corresponding to each posture is obtained. N (R N Q N ).

[0026] Furthermore, in the method for calculating the patrol attitude of a surveillance camera based on a three-dimensional algorithm, the interpolation factor and formula T are used to calculate the attitude. n (P n Y n )=((P0+△A(S n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Q n After the step of restoring and calculating the patrol posture value of the monitoring camera when patrolling the patrol point, the method further includes:

[0027] The monitoring camera is driven according to the patrol posture value by the instruction, and the patrol posture result calculation is checked one by one to verify whether it is correct.

[0028] The patrol posture of the verified surveillance camera is persistently stored.

[0029] Secondly, the present invention provides a surveillance camera patrol attitude calculation system based on a three-dimensional algorithm, the system comprising:

[0030] The camera placement module is used to place digital twin cameras at the same positions in a three-dimensional scene according to the deployment positions of monitoring cameras in the real scene, and extract the three-dimensional spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin cameras.

[0031] The first attitude adjustment module is used to adjust the attitude of the monitoring camera to 0 degrees, obtain the attitude value T0(P0, Y0), and obtain the center point of the image of the monitoring camera.

[0032] The second attitude adjustment module is used to rotate the digital twin camera until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, so as to adjust the digital twin camera to a 0-degree attitude, obtain the attitude value R0(S0, Q0), and obtain the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera.

[0033] The third attitude adjustment module is used to control the monitoring camera to adjust to at least two attitudes and obtain the attitude value T corresponding to each attitude. N (P N Y N );

[0034] The fourth attitude adjustment module is used to control the digital twin camera to adjust to at least two attitudes that correspond one-to-one with at least two attitudes of the monitoring camera, and to obtain the attitude value R corresponding to each attitude. N (R N Q N );

[0035] The factor calculation module is used to calculate the factor based on the twin relationship between the surveillance camera and the digital twin camera, using formula P. n =P0+△A(S) n -S0)+△B(Q n -Q0) and Y n =Y0+△C(S) n -S0)+△D(Q n -Q0), calculate the interpolation factor {△A, △B, △C, △D} between the surveillance camera and the digital twin camera in a unit direction, and persistently store the interpolation factor;

[0036] The first attitude calculation module is used to select the digital twin camera and associate it with the inspection points to be inspected, and...

[0037] Obtain the three-dimensional spatial coordinates TPos(X) of each inspection point T Y T Z T ), and use R n (S n Q n = (((TPos-CamPos).normalized-VF.normalized).x, ((TPos-CamPos).normalized-VF.normalized).y), calculate the attitude of the digital twin camera when it inspects the inspection point;

[0038] The second attitude calculation module is used to calculate the interpolation factor and formula T. n(P n Y n )=((P0+△A(S n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Q n -Q0))), reconstruct and calculate the patrol posture value of the monitoring camera when it patrols the patrol point.

[0039] Furthermore, in the surveillance camera patrol attitude calculation system based on 3D algorithms, the system also includes a scene building module, used for:

[0040] Before the steps of placing a digital twin camera in the same position in the three-dimensional scene according to the deployment position of the monitoring camera in the real scene, and extracting the three-dimensional spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin camera, a three-dimensional scene is built.

[0041] Furthermore, in the 3D algorithm-based surveillance camera patrol attitude calculation system, the first attitude adjustment module is specifically used for:

[0042] The attitude of the monitoring camera is adjusted to 0 degrees using a remote control, the attitude value T0(P0, Y0) is obtained, and the center point of the monitoring camera's image is obtained.

[0043] Furthermore, in the 3D algorithm-based surveillance camera patrol attitude calculation system, the second attitude adjustment module is specifically used for:

[0044] The digital twin camera is rotated using a model selection method in the 3D scene until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, thereby adjusting the digital twin camera to a 0-degree pose, obtaining the pose value R0(S0, Q0), and using the 3D scene's built-in engine algorithm transform.forward to obtain the orientation vector VF(V0, W0, U0) of the camera body's Y kernel.

[0045] Furthermore, in the 3D algorithm-based surveillance camera patrol attitude calculation system, the third attitude adjustment module controls the surveillance camera to adjust at least two attitudes and obtains the attitude value T corresponding to each attitude. N (P N Y N In the steps of ), a set distance is spaced between two adjacent poses.

[0046] Furthermore, in the aforementioned 3D algorithm-based surveillance camera patrol attitude calculation system, the fourth attitude adjustment module is specifically used for:

[0047] By controlling the X-axis rotation of the camera body's X-shell and the Y-axis rotation of the camera's local Y-core, the digital twin camera is controlled to adjust to at least two postures that correspond one-to-one with at least two postures of the monitoring camera, and the posture value R corresponding to each posture is obtained. N (R N Q N ).

[0048] Furthermore, in the surveillance camera patrol attitude calculation system based on the 3D algorithm, the system also includes a verification and storage module for:

[0049] The interpolation factor and formula T are used to calculate the interpolation factor. n (P n Y n )=((P0+△A(S n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Q n -Q0))) After restoring the steps of calculating the patrol posture value of the monitoring camera when patrolling the patrol point, the monitoring camera is driven according to the patrol posture value by the instruction, and the patrol posture result calculation is checked one by one to see if it is correct.

[0050] The patrol posture of the verified surveillance camera is persistently stored.

[0051] Thirdly, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the monitoring camera patrol posture calculation method based on the three-dimensional algorithm described in the first aspect above.

[0052] Fourthly, the present invention provides a storage medium containing computer-executable instructions, which are executed by a computer processor to implement the monitoring camera patrol posture calculation method based on a three-dimensional algorithm as described in the first aspect above.

[0053] Compared with the prior art, the present invention has the following beneficial effects:

[0054] This invention provides a method and system for calculating the patrol posture of a surveillance camera based on a three-dimensional algorithm. By establishing a twin relationship between a digital twin surveillance camera in a three-dimensional scene and a surveillance camera in a real scene through digital twin technology, the posture of the surveillance camera and the digital twin camera can be synchronized, thereby quickly and automatically calculating the patrol posture of the surveillance camera. This not only reduces the difficulty of operation but also shortens the debugging time, which is beneficial to production. Attached Figure Description

[0055] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 This is a flowchart illustrating a method for calculating the patrol posture of a surveillance camera based on a three-dimensional algorithm, provided in Embodiment 1 of the present invention.

[0057] Figure 2 This is a functional module diagram of a surveillance camera patrol attitude calculation system based on a three-dimensional algorithm provided in Embodiment 2 of the present invention;

[0058] Figure 3 This is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. Detailed Implementation

[0059] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Furthermore, those skilled in the art will understand that with technological development and the emergence of new scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0060] In the description of this application, it should be understood that, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. Furthermore, any terminology used is for the purpose of describing particular embodiments only and is not intended to be limiting of this application.

[0061] Furthermore, to better illustrate this application, numerous specific details are provided in the following detailed embodiments. Those skilled in the art should understand that this application can be implemented without certain specific details. In some instances, methods, means, components, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the main points of this application.

[0062] The technical solution of the present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0063] Example 1

[0064] In view of the shortcomings of existing automated inspection technologies, the applicant, based on years of practical experience and professional knowledge in this field, and combined with theoretical application, has actively researched and innovated to create a technology that can solve the shortcomings of existing technologies and make automated inspection technologies more practical. After continuous research, design, and repeated prototype production and improvement, this invention with real practical value has finally been created.

[0065] To achieve the goals of this application, a traditional three-layer architecture is adopted: a data service layer, a business service layer, and a view application layer. The data service layer primarily provides reliable data for this application. It uses modeling tools to achieve high-precision 3D modeling of the application scenario requiring camera monitoring deployment. 3D modeling technology is used to accurately extract the location points to be inspected, the meters to be inspected, and the equipment parts to be inspected, generating inspection location coordinate data. 3D modeling and spatial verification technology is used to obtain the 3D spatial position of the monitoring cameras. In the 3D scene, digital twin technology is used to establish the twin relationship data between the digital twin cameras and the monitoring cameras. The business service layer primarily provides the view application layer with interface capabilities such as 3D model visualization loading, data querying, and data calculation algorithms. The view application layer primarily provides users with the ability to edit inspection points, process twin data from digital twin cameras and monitoring cameras, visualize the 3D scene, provide visualization and interactive operation event triggering windows for digital twin camera data calculation, and provide interfaces for users to conduct secondary development of digital twin cameras based on the 3D scene.

[0066] This application uses digital twin computing, employing data such as the positional relationship between self-developed inspection points and digital twin cameras, and the synchronization attitude parameters between monitoring cameras and digital twin cameras, to calculate the inspection attitude values ​​of each inspection point that is associated with and bound to the monitoring camera.

[0067] Please refer to the attached document. Figure 1 This is a flowchart illustrating a method for calculating the patrol posture of a surveillance camera based on a 3D algorithm, provided in Embodiment 1 of the present invention. This method is applicable to scenarios involving automated patrols using surveillance cameras. The method is executed by a surveillance camera patrol posture calculation system based on a 3D algorithm, which can be implemented in software and / or hardware. The method specifically includes the following steps:

[0068] S101. Based on the deployment location of the surveillance cameras in the real scene, place the digital twin camera at the same location in the three-dimensional scene, and extract the three-dimensional spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin camera.

[0069] It should be noted that the digital twin camera comprises three parts: the camera housing (X-shaped outer shell) and the camera core (Y-shaped inner shell). After the surveillance cameras are deployed, a digital twin camera of the same model needs to be placed in the same location within the 3D scene.

[0070] In this embodiment, before step S101, the method further includes the following steps:

[0071] Build a 3D scene.

[0072] S102. Adjust the attitude of the monitoring camera to 0 degrees, obtain the attitude value T0(P0, Y0), and obtain the center point of the image of the monitoring camera.

[0073] In this embodiment, step S102 can be further refined to include the following steps:

[0074] The attitude of the monitoring camera is adjusted to 0 degrees using a remote control, the attitude value T0(P0, Y0) is obtained, and the center point of the monitoring camera's image is obtained.

[0075] S103. Rotate the digital twin camera until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, so as to adjust the digital twin camera to a 0-degree attitude, obtain the attitude value R0(S0, Q0), and obtain the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera.

[0076] In this embodiment, step S103 can be further refined to include the following steps:

[0077] The digital twin camera is rotated using a model selection method in the 3D scene until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, thereby adjusting the digital twin camera to a 0-degree pose, obtaining the pose value R0(S0, Q0), and using the 3D scene's built-in engine algorithm transform.forward to obtain the orientation vector VF(V0, W0, U0) of the camera body's Y kernel.

[0078] S104. Control the monitoring camera to adjust to at least two postures, and obtain the posture value T corresponding to each posture. N (P N Y N ).

[0079] In this embodiment, in step S104, a set distance is spaced between two adjacent postures.

[0080] It should be noted that the interval between the selected posture adjustments should be as large as possible.

[0081] The set distance is determined by technicians based on experience, which is derived from specific experimental results and can be any value.

[0082] S105. Control the digital twin camera to adjust to at least two postures that correspond one-to-one with at least two postures of the monitoring camera, and obtain the posture value R corresponding to each posture. N (R N Q N ).

[0083] In this embodiment, step S105 can be further refined to include the following steps:

[0084] By controlling the X-axis rotation of the camera body's X-shell and the Y-axis rotation of the camera's local Y-core, the digital twin camera is controlled to adjust to at least two postures that correspond one-to-one with at least two postures of the monitoring camera, and the posture value R corresponding to each posture is obtained. N (R N Q N ).

[0085] It should be noted that the posture adjustment of the digital twin camera must be consistent with that of the monitoring camera for each adjustment.

[0086] For example, when the monitoring camera adjusts only two poses, it acquires only two pose values, namely T1(P1, Y1) and T2(P2, Y2). Similarly, the digital twin camera also adjusts the same two poses and acquires two pose values, namely R1(S1, Q1) and R2(S2, Q2).

[0087] S106. Based on the twin relationship between the surveillance camera and the digital twin camera, using formula P... n =P0+△A(S) n -S0)+△B(Q n -Q0) and Y n =Y0+△C(S) n -S0)+△D(Q n -Q0), calculate the interpolation factors {△A, △B, △C, △D} between the surveillance camera and the digital twin camera in a unit direction, and persistently store the interpolation factors.

[0088] For example, taking the two pose values ​​T1(P1, Y1) and T2(P2, Y2) of the monitoring camera and the two pose values ​​R1(S1, Q1) and R2(S2, Q2) of the digital twin camera as examples, the interpolation calculation factors {△A, △B, △C, △D} are respectively:

[0089] △A=((P2-P0)*(Q1-Q0)-((P1-P0)(Q2-Q0)) / ((S2-S0)*(Q1-Q0)-(S1-S0)*(Q2-Q0));

[0090] △B=[(((P1-P0)*((S2-S0)*(Q1-Q0)-(S1-S0)*(Q2-Q0)))-(((p2-P0)*(Q1-Q0)-( (P1-P0)(Q2-Q0))*(S1-S0))] / [(Q2-Q0)*((S2-S0)*(Q1-Q0)-(S1-S0)*(Q2-Q0));

[0091] △C=((Y2-Y0)*(Q1-Q0)-((Y1-Y0)(Q2-Q0)) / ((S2-S0)*(Q1-Q0)-(S1-S0)*(Q2-Q0));

[0092] △D=[(((Y1-Y0)*((S2-S0)*(Q1-Q0)-(S1-S0)*(Q2-Q0)))-(((Y2-Y0)*(Q1-Q0)-( (Y1-Y0)(Q2-Q0))*(S1-S0))] / [(Q2-Q0)*((S2-S0)*(Q1-Q0)-(S1-S0)*(Q2-Q0)).

[0093] S107. Select the digital twin camera and associate it with the inspection points to be inspected, and obtain the three-dimensional spatial coordinates TPos(X) of each inspection point. T Y T Z T ), and use R n (S n Q n = (((TPos-CamPos).normalized-VF.normalized).x, ((TPos-CamPos).normalized-VF.normalized).y), calculate the attitude of the digital twin camera when it patrols the patrol point.

[0094] S108, Calculate the interpolation factor and formula T using the interpolation factor. n (P n Y n )=((P0+△A(S n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Q n -Q0))), reconstruct and calculate the patrol posture value of the monitoring camera when it patrols the patrol point.

[0095] In this embodiment, before step S108, the method further includes the following steps:

[0096] The monitoring camera is driven according to the patrol posture value by the instruction, and the patrol posture result calculation is checked one by one to verify whether it is correct.

[0097] The patrol posture of the verified surveillance camera is persistently stored.

[0098] Although this application frequently uses terms such as digital twin, three-dimensional, spatial coordinates, attitude, and inspection, the possibility of using other terms is not excluded. These terms are used merely for the convenience of describing and explaining the essence of the invention; interpreting them as any additional limitation would contradict the spirit of the invention.

[0099] This invention provides a method for calculating the patrol posture of a surveillance camera based on a 3D algorithm. By establishing a twin relationship between a digital twin surveillance camera in a 3D scene and a surveillance camera in a real scene through digital twin technology, the posture of the surveillance camera and the digital twin camera can be synchronized, thereby quickly and automatically calculating the patrol posture of the surveillance camera. This not only reduces the difficulty of operation but also shortens the debugging time, which is beneficial to production.

[0100] Example 2

[0101] Please refer to the attached document. Figure 2 This is a functional module diagram of a surveillance camera patrol attitude calculation system based on a three-dimensional algorithm provided in Embodiment 2 of the present invention. This system is applicable to executing the surveillance camera patrol attitude calculation method based on a three-dimensional algorithm provided in this embodiment of the invention. Specifically, the system includes the following modules:

[0102] The camera placement module 201 is used to place a digital twin camera at the same position in a three-dimensional scene according to the deployment position of the monitoring camera in the real scene, and extract the three-dimensional spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin camera.

[0103] The first attitude adjustment module 202 is used to adjust the attitude of the monitoring camera to a 0-degree attitude, obtain the attitude value T0(P0, Y0), and obtain the center point of the image of the monitoring camera.

[0104] The second attitude adjustment module 203 is used to rotate the digital twin camera until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, so as to adjust the digital twin camera to a 0-degree attitude, obtain the attitude value R0(S0, Q0), and obtain the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera.

[0105] The third attitude adjustment module 204 is used to control the monitoring camera to adjust to at least two attitudes and to obtain the attitude value T corresponding to each attitude. N (P N Y N );

[0106] The fourth attitude adjustment module 205 is used to control the digital twin camera to adjust at least two attitudes that correspond one-to-one with at least two attitudes of the monitoring camera, and to obtain the attitude value R corresponding to each attitude. N (R N Q N );

[0107] Factor calculation module 206 is used to calculate the factor based on the twin relationship between the surveillance camera and the digital twin camera using formula P. n =P0+△A(S) n -S0)+△B(Q n -Q0) and Y n =Y0+△C(S) n -S0)+△D(Q n -Q0), calculate the interpolation factor {△A, △B, △C, △D} between the surveillance camera and the digital twin camera in a unit direction, and persistently store the interpolation factor;

[0108] The first attitude calculation module 207 is used to select the digital twin camera and associate it with the inspection point to be inspected, and,

[0109] Obtain the three-dimensional spatial coordinates TPos(X) of each inspection point T Y T Z T ), and use R n (S n Q n = (((TPos-CamPos).normalized-VF.normalized).x, ((TPos-CamPos).normalized-VF.normalized).y), calculate the attitude of the digital twin camera when it inspects the inspection point;

[0110] The second attitude calculation module 208 is used to calculate the interpolation factor and formula T. n (P n Y n )=((P0+△A(S n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Qn -Q0))), reconstruct and calculate the patrol posture value of the monitoring camera when it patrols the patrol point.

[0111] Optionally, in the surveillance camera patrol attitude calculation system based on 3D algorithms, the system further includes a scene building module, used for:

[0112] Before the steps of placing a digital twin camera in the same position in the three-dimensional scene according to the deployment position of the monitoring camera in the real scene, and extracting the three-dimensional spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin camera, a three-dimensional scene is built.

[0113] Optionally, in the 3D algorithm-based surveillance camera patrol attitude calculation system, the first attitude adjustment module 202 is specifically used for:

[0114] The attitude of the monitoring camera is adjusted to 0 degrees using a remote control, the attitude value T0(P0, Y0) is obtained, and the center point of the monitoring camera's image is obtained.

[0115] Optionally, in the 3D algorithm-based surveillance camera patrol attitude calculation system, the second attitude adjustment module 203 is specifically used for:

[0116] The digital twin camera is rotated using a model selection method in the 3D scene until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, thereby adjusting the digital twin camera to a 0-degree pose, obtaining the pose value R0(S0, Q0), and using the 3D scene's built-in engine algorithm transform.forward to obtain the orientation vector VF(V0, W0, U0) of the camera body's Y kernel.

[0117] Optionally, in the 3D algorithm-based surveillance camera patrol attitude calculation system, the third attitude adjustment module 204 controls the surveillance camera to adjust at least two attitudes and obtains the attitude value T corresponding to each attitude. N (P N Y N In the steps of ), a set distance is spaced between two adjacent poses.

[0118] Optionally, in the surveillance camera patrol attitude calculation system based on the three-dimensional algorithm, the fourth attitude adjustment module 205 is specifically used for:

[0119] By controlling the X-axis rotation of the camera body's X-shell and the Y-axis rotation of the camera's local Y-core, the digital twin camera is controlled to adjust to at least two postures that correspond one-to-one with at least two postures of the monitoring camera, and the posture value R corresponding to each posture is obtained. N(R N Q N ).

[0120] Optionally, in the surveillance camera patrol attitude calculation system based on 3D algorithms, the system further includes a verification and storage module for:

[0121] The interpolation factor and formula T are used to calculate the interpolation factor. n (P n Y n )=((P0+△A(S n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Q n -Q0))) After restoring the steps of calculating the patrol posture value of the monitoring camera when patrolling the patrol point, the monitoring camera is driven according to the patrol posture value by the instruction, and the patrol posture result calculation is checked one by one to see if it is correct.

[0122] The patrol posture of the verified surveillance camera is persistently stored.

[0123] This invention provides a monitoring camera patrol posture calculation system based on a 3D algorithm. By establishing a twin relationship between a digital twin monitoring camera in a 3D scene and a monitoring camera in a real scene through digital twin technology, the attitude of the monitoring camera and the digital twin camera can be synchronized, thereby quickly and automatically calculating the patrol posture of the monitoring camera. This not only reduces the difficulty of operation but also shortens the debugging time, which is beneficial to production.

[0124] The above system can execute the methods provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the methods.

[0125] Example 3

[0126] Figure 3 This is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. Figure 3 A block diagram of an exemplary computer device 12 suitable for implementing embodiments of the present invention is shown. Figure 3 The computer device 12 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0127] like Figure 3 As shown, the computer device 12 is represented in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing unit 16).

[0128] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0129] Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0130] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 3 Not shown; usually referred to as a "hard drive"). Although Figure 3 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0131] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.

[0132] Computer device 12 can also communicate with one or more external devices 15 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 12, and / or with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, computer device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be understood that, although... Figure 3 As not shown, it can be used in conjunction with computer device 12 with other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0133] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the monitoring camera patrol posture calculation method based on three-dimensional algorithm provided in the embodiments of the present invention.

[0134] Example 4

[0135] Embodiment 4 of the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the monitoring camera patrol posture calculation method based on a three-dimensional algorithm as provided in all embodiments of the present application.

[0136] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.

[0137] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0138] The program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0139] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0140] In summary, after reading this detailed disclosure, those skilled in the art will understand that the foregoing detailed disclosure is presented by way of example only and is not restrictive. Although not explicitly stated herein, those skilled in the art will understand that this application is intended to encompass various reasonable changes, improvements, and modifications to the embodiments. These changes, improvements, and modifications are intended to be made by this application and are within the spirit and scope of the exemplary embodiments of this application.

[0141] Furthermore, certain terms used in this application have been used to describe embodiments of this application. For example, "an embodiment," "an embodiment," and / or "some embodiments" mean that a particular feature, structure, or characteristic described in connection with that embodiment may be included in at least one embodiment of this application. Therefore, it is to be emphasized and understood that two or more references to "an embodiment" or "an embodiment" or "an alternative embodiment" in various parts of this specification do not necessarily refer to the same embodiment. Moreover, specific features, structures, or characteristics may be appropriately combined in one or more embodiments of this application.

[0142] It should be understood that in the foregoing description of the embodiments of this application, various features are combined in a single embodiment, drawing, or description for the purpose of simplifying the understanding of a feature. However, this does not mean that the combination of these features is necessary, and those skilled in the art may extract some features as separate embodiments when reading this application. That is, the embodiments in this application can also be understood as an integration of multiple sub-embodiments. It is also valid when the content of each sub-embodiment contains fewer than all the features of a single foregoing disclosed embodiment.

[0143] Each patent, patent application, publication of the patent application, and other materials such as articles, books, specifications, publications, documents, articles, etc., cited herein may be incorporated by reference. The entire contents used for all purposes, except for any history of prosecution documents associated with it, that may be inconsistent with or conflict with this document, or that may have a limiting effect on the widest extent of the claims, are now or hereafter associated with this document. For example, in the event of any inconsistency or conflict between the description, definition, and / or use of terms associated with any of the included materials and the terms, description, definition, and / or used in connection with this document, the terms used herein shall prevail.

[0144] Finally, it should be understood that the embodiments disclosed herein are illustrative of the principles of the embodiments of this application. Other modified embodiments are also within the scope of this application. Therefore, the embodiments disclosed herein are merely examples and not limitations. Those skilled in the art can adopt alternative configurations to implement the applications in this application based on the embodiments in this application. Therefore, the embodiments of this application are not limited to the embodiments precisely described in the application.

Claims

1. A method for calculating the patrol posture of a surveillance camera based on a three-dimensional algorithm, characterized in that, The method includes: Based on the deployment location of surveillance cameras in the real-world scenario, digital twin cameras are placed at the same locations in the three-dimensional scene, and the three-dimensional spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin cameras are extracted. Adjust the attitude of the monitoring camera to 0 degrees, obtain the attitude value T0(P0, Y0), and obtain the center point of the image of the monitoring camera. Rotate the digital twin camera until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, so as to adjust the digital twin camera to a 0-degree attitude, obtain the attitude value R0(S0, Q0), and obtain the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera. Control the monitoring camera to adjust to at least two postures, and acquire the posture value T corresponding to each posture. n (P) n Y n ); The digital twin camera is controlled to adjust to at least two poses that correspond one-to-one with at least two poses of the monitoring camera, and the pose value R corresponding to each pose is obtained. n (R) n Q n ); Based on the twin relationship between the surveillance camera and the digital twin camera, using formula P n =P0+△A(S n -S0)+△B(Q n -Q0) and Y n =Y0+△C(S n -S0)+△D(Q n -Q0), calculate the interpolation factor {△A, △B, △C, △D} between the surveillance camera and the digital twin camera in a unit direction, and persistently store the interpolation factor; The digital twin camera is selected and associated with the inspection points to be inspected, and the three-dimensional spatial coordinates TPos(X) of each inspection point are obtained. T Y T Z T ), and use R n (S) n Q n =(((TPos-CamPos).normalized-VF.normalized).x,((TPos-CamPos).normalized-VF.normalized).y), calculate the attitude of the digital twin camera when it inspects the inspection point; The interpolation factor and formula T are used to calculate the interpolation factor. n (P) n Y n =(P0+△A(S) n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Q n -Q0))), reconstruct and calculate the patrol posture value of the monitoring camera when it patrols the patrol point; The steps of rotating the digital twin camera until the center point of the digital twin camera's image coincides with the center point of the monitoring camera's image to adjust the digital twin camera to a 0-degree attitude, obtaining the attitude value R0(S0, Q0), and obtaining the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera include: The digital twin camera is rotated by model selection in the 3D scene until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, so as to adjust the digital twin camera to a 0-degree attitude, obtain the attitude value R0(S0, Q0), and use the 3D scene built-in engine algorithm transform.forward to obtain the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera. The system controls the digital twin camera to adjust to at least two poses that correspond one-to-one with at least two poses of the monitoring camera, and obtains the pose value R corresponding to each pose. n (R) n Q n The steps include: By controlling the X-axis rotation of the camera body's X-shell and the Y-axis rotation of the camera's local Y-core, the digital twin camera is controlled to adjust to at least two postures that correspond one-to-one with at least two postures of the monitoring camera, and the posture value R corresponding to each posture is obtained. n (R) n Q n ).

2. The method for calculating the patrol posture of a surveillance camera based on a three-dimensional algorithm according to claim 1, characterized in that, Before the step of placing a digital twin camera at the same location in the 3D scene based on the deployment location of the surveillance camera in the real scene, and extracting the 3D spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin camera, the method further includes: Build a 3D scene.

3. The method for calculating the patrol posture of a surveillance camera based on a three-dimensional algorithm according to claim 1, characterized in that, The steps of adjusting the attitude of the monitoring camera to 0 degrees, obtaining the attitude value T0(P0, Y0), and obtaining the center point of the monitoring camera's image include: The attitude of the monitoring camera is adjusted to 0 degrees using a remote control, the attitude value T0(P0, Y0) is obtained, and the center point of the monitoring camera's image is obtained.

4. The method for calculating the patrol posture of a surveillance camera based on a three-dimensional algorithm according to claim 1, characterized in that, The monitoring camera is controlled to adjust to at least two postures, and the posture value T corresponding to each posture is acquired. n (P) n Y n In the steps of ), a set distance is spaced between two adjacent poses.

5. The method for calculating the patrol posture of a surveillance camera based on a three-dimensional algorithm according to claim 1, characterized in that, The interpolation factor and formula T are used to calculate the interpolation factor. n (P) n Y n =(P0+△A(S) n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Q n After the step of restoring and calculating the patrol posture value of the monitoring camera when patrolling the patrol point, the method further includes: The monitoring camera is driven according to the patrol posture value by the instruction, and the patrol posture result calculation is checked one by one to verify whether it is correct. The patrol posture of the verified surveillance camera is persistently stored.

6. A system for calculating the patrol attitude of a surveillance camera based on a three-dimensional algorithm, characterized in that, The system includes: The camera placement module is used to place digital twin cameras at the same positions in a three-dimensional scene according to the deployment positions of surveillance cameras in the real scene, and extract the three-dimensional spatial coordinates CamPos(Xc, Yc, Zc) of the digital twin cameras. The first attitude adjustment module is used to adjust the attitude of the monitoring camera to 0 degrees, obtain the attitude value T0(P0, Y0), and obtain the center point of the image of the monitoring camera. The second attitude adjustment module is used to rotate the digital twin camera until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, so as to adjust the digital twin camera to a 0-degree attitude, obtain the attitude value R0(S0, Q0), and obtain the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera. The third attitude adjustment module is used to control the monitoring camera to adjust to at least two attitudes and obtain the attitude value T corresponding to each attitude. n (P) n Y n ); The fourth attitude adjustment module is used to control the digital twin camera to adjust to at least two attitudes that correspond one-to-one with at least two attitudes of the monitoring camera, and to obtain the attitude value R corresponding to each attitude. n (R) n Q n ); The factor calculation module is used to calculate the factor based on the twin relationship between the surveillance camera and the digital twin camera, using formula P. n =P0+△A(S n -S0)+△B(Q n -Q0) and Y n =Y0+△C(S n -S0)+△D(Q n -Q0), calculate the interpolation factor {△A, △B, △C, △D} between the surveillance camera and the digital twin camera in a unit direction, and persistently store the interpolation factor; The first attitude calculation module is used to select the digital twin camera and associate it with the inspection points to be inspected, and... Obtain the three-dimensional spatial coordinates TPos(X) of each inspection point T Y T Z T ), and use R n (S) n Q n =(((TPos-CamPos).normalized-VF.normalized).x,((TPos-CamPos).normalized-VF.normalized).y), calculate the attitude of the digital twin camera when it inspects the inspection point; The second attitude calculation module is used to calculate the interpolation factor and formula T. n (P) n Y n =(P0+△A(S) n -S0)+△B(Q n -Q0)),(Y0+△C(S n -S0)+△D(Q n -Q0))), reconstruct and calculate the patrol posture value of the monitoring camera when it patrols the patrol point; The second attitude adjustment module is specifically used for: The digital twin camera is rotated by model selection in the 3D scene until the center point of the digital twin camera's image is consistent with the center point of the monitoring camera's image, so as to adjust the digital twin camera to a 0-degree attitude, obtain the attitude value R0(S0, Q0), and use the 3D scene built-in engine algorithm transform.forward to obtain the orientation vector VF(V0, W0, U0) of the camera body Y kernel of the digital twin camera. The fourth attitude adjustment module is specifically used for: By controlling the X-axis rotation of the camera body's X-shell and the Y-axis rotation of the camera's local Y-core, the digital twin camera is controlled to adjust to at least two postures that correspond one-to-one with at least two postures of the monitoring camera, and the posture value R corresponding to each posture is obtained. n (R) n Q n ).

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the method for calculating the patrol posture of a monitoring camera based on a three-dimensional algorithm as described in any one of claims 1-5.

8. A storage medium containing computer-executable instructions, said computer-executable instructions being executed by a computer processor to implement the monitoring camera patrol posture calculation method based on a three-dimensional algorithm as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Method for correcting long-period attitude error of satellite based on ground control

    CN105910607A

  • Digital twinning method and system based on hydraulic support multi-dimensional attitude monitoring

    CN113821884A