Method for displaying target video tag based on camera installation position and optical parameters thereof

By calculating the visual frustum projection and target equipment position based on the camera installation position and its optical parameters, real-time and accurate marking and display of equipment in the factory is achieved, solving the problems of insufficient map display and difficulty in equipment identification in traditional methods. Improved the real-time and intelligence of the monitoring system.

CN118644547APending Publication Date: 2024-09-13DAQING ANRUIDA TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410687273.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In traditional factory production and security management, simple map display cannot meet the needs of factory management, and multiple similar equipment and facilities in the surveillance video screen make it impossible to accurately identify target points.

Method used

Using a method based on the camera installation position and its optical parameters, by collecting surveillance camera parameters and pan/tilt movements, the projection of the visual frustum on the ground is calculated, the orientation and pitch angle of the target device are determined, and tags are added to the video based on these parameters. Achieve real-time and accurate marking and display of target devices.

Benefits of technology

It improves the real-time and accuracy of the monitoring system, reduces manual intervention, enhances the intelligence level of the system, ensures comprehensiveness and accuracy of coverage, and can adjust the monitoring range in real time when the camera moves or the angle changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644547A
    Figure CN118644547A
Patent Text Reader

Abstract

The invention discloses a method for displaying a target video tag based on a camera installation position and optical parameters thereof, and relates to the technical field of geographic information. In order to solve the technical problems that in the prior art, traditional factory production and security and protection management adopts pure map display, so that factory management requirements are not completely met, and when multiple similar equipment facilities appear in a monitoring video picture, corresponding point locations cannot be accurately identified, the invention provides a method and a device for monitoring factory production and security and protection management. According to the technical scheme, the method comprises the steps that monitoring camera parameters and holder actions are collected; obtaining the projection of the visual cone on the ground according to the monitoring camera parameters and the holder action; collecting target equipment in a trapezoid where the projection of the visual cone on the ground is located; calculating the orientation and pitch angle of the target equipment; obtaining the proportion of the target equipment in the view field according to the orientation and the pitch angle of the target equipment; and adding a label to the monitoring video corresponding to the target equipment according to the proportion of the target equipment in the field of view. The method is suitable for being applied to work and scenes needing real-time monitoring and management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] It relates to the field of geographic information technology. Background Art

[0002] As the scale of industrial plants continues to expand and the number and types of their equipment and facilities continue to increase, effective management of factory production and security is needed.

[0003] Traditional methods are to display the location of the target on a map based on longitude and latitude or to guide optoelectronics to view the target point video based on the target location. Simple map display is no longer sufficient to fully meet the needs of factory management. Moreover, when multiple similar equipment and facilities appear in the surveillance video, the corresponding points cannot be accurately identified. Summary of the invention

[0004] In order to solve the technical problems that the traditional factory production and security management in the prior art adopts simple map display, which is not enough to fully meet the needs of factory management, and when multiple similar equipment and facilities appear in the monitoring video screen, the corresponding points cannot be accurately identified, the technical solution provided by the present invention is:

[0005] A method for displaying a target video label based on a camera installation position and its optical parameters, the method comprising:

[0006] Steps to collect surveillance camera parameters and PTZ movements;

[0007] The step of obtaining a projection of a visual cone on the ground according to the monitoring camera parameters and the pan / tilt motion;

[0008] A step of collecting target devices in the trapezoid where the projection of the visual frustum on the ground is located;

[0009] The step of calculating the azimuth and elevation angle of the target device;

[0010] A step of obtaining a proportion of the target device in the field of view according to the azimuth and elevation angle of the target device;

[0011] The step of adding a label to the surveillance video corresponding to the target device according to the proportion of the target device in the field of view.

[0012] Furthermore, a preferred implementation manner is provided, in which the longitude and latitude of the midpoint and the maximum distance from the midpoint to the vertex in the trapezoid where the projection of the visual frustum on the ground is located are calculated, a circle is drawn with the longitude and latitude of the midpoint as the center and the maximum distance from the midpoint to the vertex as the radius, the target device within the circle is searched, and the target device in the trapezoid where the projection of the visual frustum on the ground is continuously obtained.

[0013] Furthermore, a preferred embodiment is provided, in which the maximum distance from the midpoint to the vertex is calculated according to the distance between the upper and lower bases of the trapezoid where the projection of the visual frustum on the ground is located, the midpoint of the height, and the longitude and latitude of the midpoint.

[0014] Furthermore, a preferred embodiment is provided, in which the azimuth and elevation angle of the target device are calculated based on the positional relationship of the target device relative to the monitoring camera, and the longitude and latitude of the target device and the longitude and latitude of the monitoring camera.

[0015] Furthermore, a preferred embodiment is provided, wherein the monitoring camera parameters include latitude and longitude, installation height and ground height.

[0016] Furthermore, a preferred embodiment is provided, in which the trapezoid where the projection of the visual frustum on the ground is located is determined according to the longitude and latitude of the vertices of the trapezoid where the projection of the visual frustum on the ground is located, and the installation height, horizontal field of view angle, vertical field of view angle, azimuth angle and pitch angle of the monitoring camera.

[0017] Furthermore, a preferred implementation is provided, in which the proportion of the target device in the field of view is obtained according to the azimuth and pitch angle of the target device and the field of view of the monitoring camera.

[0018] Based on the same inventive concept, the present invention also provides a device for displaying a target video label based on a camera installation position and its optical parameters, the device comprising:

[0019] A module for collecting surveillance camera parameters and PTZ movements;

[0020] A module for obtaining the projection of the visual cone on the ground according to the monitoring camera parameters and the pan / tilt motion;

[0021] Collecting a module of a target device in a trapezoid where the projection of the visual frustum on the ground is located;

[0022] A module for calculating the azimuth and elevation angle of the target device;

[0023] A module for obtaining a proportion of the target device in the field of view according to the azimuth and pitch angle of the target device;

[0024] A module for adding a label to the surveillance video corresponding to the target device according to the proportion of the target device in the field of view.

[0025] Based on the same inventive concept, the present invention also provides a computer storage medium for storing a computer program. When the computer program is read by a computer, the computer executes the method described.

[0026] Based on the same inventive concept, the present invention also provides a computer, including a processor and a storage medium. When the processor reads a computer program stored in the storage medium, the computer executes the method described.

[0027] Compared with the prior art, the technical solution provided by the present invention is beneficial in that:

[0028] In existing research, many video surveillance systems rely on static camera parameters and preset monitoring ranges, and lack real-time and dynamic update capabilities. This solution improves the response speed and accuracy of the surveillance system through real-time acquisition and calculation.

[0029] For example, some traditional monitoring systems only recognize targets based on fixed viewing angles and preset areas, which are prone to positioning errors. This solution significantly reduces such errors through real-time geometric calculation and position update.

[0030] Traditional monitoring systems often require manual intervention for target marking and video analysis. This solution greatly reduces the need for manual operation and improves the intelligence level of the system through automated azimuth and elevation angle calculation and label addition.

[0031] For example, compared with methods that manually mark objects, this scheme can add accurate labels to videos more quickly and reduce errors introduced by human factors.

[0032] The coverage of many existing surveillance systems is limited by the fixed viewing angle of the camera, and the surveillance area cannot be flexibly adjusted. This solution can flexibly adjust the surveillance range by dynamically calculating the ground projection of the viewing frustum, ensuring comprehensive and accurate coverage.

[0033] Compared with some systems based on fixed monitoring areas, this solution can adjust the monitoring range in real time when the camera moves or the angle changes, ensuring that the target device is always within the monitoring field of view.

[0034] The present invention provides a method for displaying target video labels based on the camera installation position and its optical parameters, which realizes real-time and accurate marking and display of target devices in monitoring videos by accurately collecting and calculating camera parameters, ground projection of the visual cone, azimuth and pitch angle of the target device, etc. Compared with traditional monitoring systems, this solution significantly improves the real-time, accuracy and intelligence of monitoring, and has broad application prospects and significant technical advantages.

[0035] The present invention provides a method for displaying a target video label based on the camera installation position and its optical parameters, which collects the camera's latitude and longitude, installation height, field of view angle, azimuth angle, pitch angle, and pan / tilt motion parameters in real time. The calculation accuracy of the ground projection of the visual cone is ensured. Compared with traditional methods, this real-time collection and update method improves the accuracy of data and the real-time nature of monitoring.

[0036] The present invention provides a method for displaying a target video label based on the camera installation position and its optical parameters, which uses the camera installation position and optical parameters to obtain the projection trapezoid of the visual cone on the ground through geometric calculation. This geometric calculation method accurately determines the monitoring range and avoids the problem of inaccurate target positioning caused by viewing angle errors in traditional methods.

[0037] The present invention provides a method for displaying a target video label based on the camera installation position and its optical parameters, by calculating the maximum distance between the longitude and latitude of the midpoint of the trapezoid and the vertex, and using this as the center and radius to find the target device. This method based on geometric projection and spatial search improves the accuracy and effectiveness of the target device positioning and reduces the missed detection rate.

[0038] The present invention provides a method for displaying target video labels based on the camera installation position and its optical parameters, which accurately calculates the azimuth and pitch angles according to the relative position relationship between the target device and the camera and the difference in longitude and latitude. This calculation method ensures the accuracy of the target device label in the monitoring video, and can more accurately display the position of the device in the field of view compared to traditional methods.

[0039] The present invention provides a method for displaying target video labels based on the camera installation position and its optical parameters, which calculates the proportion of the target device in the monitoring field of view according to the azimuth, pitch angle and field of view. By accurately calculating the proportion, the visualization effect of the monitoring video is improved, allowing monitoring personnel to more intuitively identify and analyze the video content.

[0040] The present invention provides a method for displaying target video labels based on the camera installation position and its optical parameters, which automatically adds labels to the monitoring video according to the calculated target device position and field of view ratio. This automatic label adding method reduces manual intervention, improves monitoring efficiency and accuracy, and makes the monitoring system more intelligent.

[0041] The present invention provides a method for displaying a target video label based on a camera installation position and its optical parameters, which is suitable for use in work and scenes requiring real-time monitoring and management. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 The present invention is a flowchart of a method for displaying a target video label based on a camera installation position and its optical parameters. DETAILED DESCRIPTION

[0043] In order to make the advantages and benefits of the technical solution provided by the present invention more clearly reflected, the technical solution provided by the present invention is now further described in detail with reference to the accompanying drawings, specifically:

[0044] Embodiment 1: This embodiment provides a method for displaying a target video label based on a camera installation position and its optical parameters, the method comprising:

[0045] Steps to collect surveillance camera parameters and PTZ movements;

[0046] The step of obtaining a projection of a visual cone on the ground according to the monitoring camera parameters and the pan / tilt motion;

[0047] A step of collecting target devices in the trapezoid where the projection of the visual frustum on the ground is located;

[0048] The step of calculating the azimuth and elevation angle of the target device;

[0049] A step of obtaining a proportion of the target device in the field of view according to the azimuth and elevation angle of the target device;

[0050] The step of adding a label to the surveillance video corresponding to the target device according to the proportion of the target device in the field of view.

[0051] Specifically, the technical solution provided in this embodiment includes:

[0052] Step 1: Enter the surveillance camera parameters

[0053] Enter the relevant parameters of the surveillance camera into the database and grant corresponding permissions.

[0054] Enter the camera's latitude and longitude (cLongitude, cLatitude);

[0055] Enter the camera installation altitude (cAltitude);

[0056] Enter the ground height;

[0057] Enter these parameters into the database and set corresponding access rights.

[0058] Step 2: Enter equipment and facility attributes

[0059] Enter the properties of plant equipment and facilities into the database.

[0060] Attributes include: name, department, latitude and longitude, and ground height;

[0061] Enter these properties into a database for subsequent calculation and display.

[0062] Step 3: Calculate the ground projection of the viewing frustum

[0063] According to the optical parameters of the camera and the gimbal movement, the projection of the viewing frustum on the ground is calculated.

[0064] Calculate the latitude and longitude of the trapezoidal vertex of the ground projection of the viewing cone;

[0065] Use the camera installation altitude (cAltitude), horizontal field of view angle (fHorAngle), vertical field of view angle (fVerAngle), azimuth angle (p), and pitch angle (t);

[0066] Step 4: Calculate the projection midpoint and maximum range

[0067] Calculate the midpoint of the cone projection trapezoid and the maximum distance from the midpoint to the vertex.

[0068] Calculate the distance from the camera to the upper and lower bases of the trapezoid (dg, xg);

[0069] Calculate the midpoint distance of the trapezoid height (mg);

[0070] Calculate the longitude and latitude of the midpoint (lonM, latM);

[0071] Calculate the distance from the midpoint to the four vertices and take the maximum value as dM.

[0072] Step 5: Find the largest range of equipment and facilities

[0073] Finds equipment facilities within the maximum calculated range.

[0074] Use midpoint (latM, lonM) and maximum distance (dM);

[0075] Find the plant equipment and facilities within the maximum range of the midpoint of the projection trapezoid of the visual cone;

[0076] Step 6: Find the equipment and facilities in the projection

[0077] Find the facility within the trapezoid of the viewing frustum projection.

[0078] From the points obtained in step 5, further search for plant equipment and facilities within the projection trapezoid of the viewing cone.

[0079] Step 7: Calculate the azimuth and elevation of the equipment

[0080] Calculate the azimuth and elevation of the equipment facility.

[0081] Calculate the position of the equipment relative to the camera (azimuth Angle_A, elevation Angle_E);

[0082] Use the longitude and latitude of the device (longitudet, latitudet) and the longitude and latitude of the camera (longitudec, latitudec);

[0083] Step 8: Calculate the field of view ratio

[0084] Calculate the proportion of equipment and facilities in the field of view.

[0085] Transverse proportion (PA) and longitudinal proportion (PE);

[0086] According to the calculated azimuth angle (Angle_A) and elevation angle (Angle_E);

[0087] Combined with the camera's field of view (fHorAngle, fVerAngle);

[0088] Step 9: Display Video Tags

[0089] Display the name and location of equipment and facilities as labels on the surveillance video screen.

[0090] Use the horizontal and vertical proportions calculated in step 8;

[0091] Display labels of equipment and facilities in the video frame;

[0092] It enables users to accurately identify and manage equipment and facilities within the factory.

[0093] Implementation method 2: This implementation method further limits the method for displaying a target video label based on a camera installation position and its optical parameters provided in implementation method 1. The longitude and latitude of the midpoint and the maximum distance from the midpoint to the vertex in the trapezoid where the projection of the visual frustum on the ground is located are calculated, and a circle is made with the longitude and latitude of the midpoint as the center and the maximum distance from the midpoint to the vertex as the radius, and the target device within the circle is searched, and the target device in the trapezoid where the projection of the visual frustum on the ground is continuously obtained.

[0094] Implementation method three: This implementation method is a further limitation of the method for displaying a target video label based on a camera installation position and its optical parameters provided in implementation method two. The maximum distance from the midpoint to the vertex is calculated according to the distance between the upper and lower bases of the trapezoid where the projection of the visual cone on the ground is located, the midpoint of the height, and the longitude and latitude of the midpoint.

[0095] Implementation method 4. This implementation method is a further limitation of the method for displaying a target video label based on the camera installation position and its optical parameters provided in implementation method 1. The azimuth and pitch angle of the target device are calculated through the positional relationship of the target device relative to the monitoring camera, and the longitude and latitude of the target device and the longitude and latitude of the monitoring camera.

[0096] Implementation method 5: This implementation method further limits the method for displaying target video tags based on camera installation position and its optical parameters provided in implementation method 1, wherein the monitoring camera parameters include latitude and longitude, installation height and ground height.

[0097] Implementation method 6. This implementation method is a further limitation of the method for displaying a target video label based on a camera installation position and its optical parameters provided in implementation method 1. The trapezoid where the projection of the visual frustum on the ground is located is confirmed according to the longitude and latitude of the vertices of the trapezoid where the projection of the visual frustum on the ground is located, and the installation height, horizontal field of view angle, vertical field of view angle, azimuth angle and pitch angle of the monitoring camera.

[0098] Implementation method seven. This implementation method is a further limitation of the method provided in implementation method one for displaying target video labels based on the camera installation position and its optical parameters. The proportion of the target device in the field of view is obtained according to the azimuth and pitch angle of the target device and the field of view of the surveillance camera.

[0099] Embodiment 8: This embodiment provides a device for displaying a target video tag based on a camera installation position and its optical parameters, the device comprising:

[0100] A module for collecting surveillance camera parameters and PTZ movements;

[0101] A module for obtaining the projection of the visual cone on the ground according to the monitoring camera parameters and the pan / tilt motion;

[0102] Collecting a module of a target device in a trapezoid where the projection of the visual frustum on the ground is located;

[0103] A module for calculating the azimuth and elevation angle of the target device;

[0104] A module for obtaining a proportion of the target device in the field of view according to the azimuth and pitch angle of the target device;

[0105] A module for adding a label to the surveillance video corresponding to the target device according to the proportion of the target device in the field of view.

[0106] Embodiment 9: This embodiment provides a computer storage medium for storing a computer program. When the computer program is read by a computer, the computer executes the method provided in embodiment 1.

[0107] Embodiment 10: This embodiment provides a computer, including a processor and a storage medium. When the processor reads a computer program stored in the storage medium, the computer executes the method provided in embodiment 1.

[0108] Implementation Method XI: Combination Figure 1 This embodiment is described in detail by using specific examples to further describe the technical solution provided above. Specifically:

[0109] The purpose of this implementation is to display the names of factory equipment and facilities in text form in real time, accurately and efficiently in the monitoring video screen to solve the management problems existing in industrial production and security.

[0110] This embodiment provides a method for displaying a target video label based on a camera installation position and its optical parameters, the method comprising the following steps:

[0111] S1: Enter the latitude and longitude, installation height and ground height of the surveillance camera into the database and attach permissions;

[0112] S2: Enter the attributes of the plant equipment and facilities (attributes include: name, department, longitude and latitude, and ground height) into the database;

[0113] S3: Calculate the latitude and longitude of the vertex of the trapezoid of the ground projection of the visual cone according to the latitude and longitude and installation height of the camera, as well as the current optical parameters (horizontal field of view angle and vertical field of view angle) and the pan / tilt action (azimuth angle and pitch angle);

[0114] It is calculated as follows:

[0115] cAltitude: camera installation altitude; cLongitude: camera installation longitude; cLatitude: camera installation latitude;

[0116] fVerAngle: vertical field of view angle; fHorAngle: horizontal field of view angle;

[0117] p: azimuth angle; t: pitch angle;

[0118] xy: distance from camera to the upper vertex of the trapezoid; dy: distance from camera to the lower vertex of the trapezoid;

[0119] lonA, lonB: longitude of the top vertex; latA, latB: latitude of the top vertex;

[0120] lonC, lonD: longitude of the lower vertex; latC, latD: latitude of the lower vertex;

[0121] / / Calculate the distance from the camera to the vertex on the trapezoid

[0122] `xy=tan(π / 2-(π*2-π*t / 180)-π*fVerAngle / 180 /

[0123] 2)*cAltitude / cos(π*fHorAngle / 180 / 2)`,

[0124] When xy<0

[0125] xy=xy*(-1);

[0126] / / Calculate the distance from the camera to the lower vertex of the trapezoid

[0127] `dy=tan(π / 2-(π*2-π*t / 180)+π*fVerAngle / 180 /

[0128] 2)*cAltitude / cos(π*fHorAngle / 180 / 2)`,

[0129] When dy<0

[0130] dy=dy*(-1);

[0131] / / Calculate the vertex of the camera's viewing cone projection trapezoid

[0132] lonA=cLongitude+xy*sin((p+fHorAngle / 2)*π / 180)*180 / (π*6371229*cos(cLatitude*π / 180))

[0133] latA=cLatitude+xy*cos((p+fHorAngle / 2)*π / 180) / (π*6371229 / 180)

[0134] lonB=cLongitude+xy*sin((p-fHorAngle / 2)*π / 180)*180 / (π*6371229*cos(cLatitude*π / 180))

[0135] latB=cLatitude+xy*cos((p-fHorAngle / 2)*π / 180) / (π*6371229 / 180)

[0136] Among them, cLongitude: camera longitude, cLatitude: camera latitude, p: azimuth, 6371229: earth radius, in meters;

[0137] These formulas calculate the latitude and longitude of vertices A and B on the viewing frustum.

[0138] lonC=cLongitude+dy*sin((p+fHorAngle / 2)*π / 180)*180 / (π*6371229*cos(cLatitude*π / 180))

[0139] latC=cLatitude+dy*cos((p+fHorAngle / 2)*π / 180) / (π*6371229 / 180)

[0140] lonD=cLongitude+dy*sin((p-fHorAngle / 2)*π / 180)*180 / (π*6371229*cos(cLatitude*π / 180))

[0141] latD=cLatitude+dy*cos((p-fHorAngle / 2)*π / 180) / (π*6371229 / 180)

[0142] These formulas calculate the latitude and longitude of the lower vertices C and D of the frustum.

[0143] S4: Calculate the maximum distance from the midpoint of the trapezoid projected from the view cone to the map and from the midpoint to the vertex;

[0144] dg: distance from the camera to the upper base of the trapezoid; xg: distance from the camera to the lower base of the trapezoid; mg: distance from the camera to the midpoint of the height of the trapezoid;

[0145] dA: distance from midpoint to fixed point A; dB: distance from midpoint to fixed point B;

[0146] dC: distance from midpoint to fixed point C; dD: distance from midpoint to fixed point D;

[0147] dM: longest distance;

[0148] lonM, latM: longitude and latitude of the midpoint of the trapezoidal symmetry axis;

[0149] / / Calculate the distance from the camera to the upper bottom of the trapezoid

[0150] `dg=tan(π / 2-(π*2-π*t / 180)-π*fVerAngle / 180 /

[0151] 2) *cAltitude`,

[0152] When dg<0

[0153] dg = dg*(-1);

[0154] / / Calculate the distance from the camera to the bottom of the trapezoid

[0155] `xg=tan(π / 2-(π*2-π*t / 180)+π*fVerAngle / 180 /

[0156] 2) *cAltitude`,

[0157] When xg<0

[0158] xg=xg*(-1);

[0159] / / Calculate the distance from the camera to the midpoint of the trapezoid height

[0160] `mg=xg+0.5*(dg-xg)`,

[0161] / / Calculate the longitude and latitude of the midpoint of the trapezoidal symmetry axis

[0162] lonM=cLongitude+mg*sin(p*π / 180)*180 / (π*6371229*cos(cLatitude*π / 180))

[0163] latM=cLatitude+mg*cos(p*π / 180) / (π*6371229 / 180)

[0164] / / Longest distance calculation (longitudex is lonA, lonB, lonC, lonD, latitudex is latA, latB, latC, latD, longitudem, latitudem are the longitude and latitude of the midpoint. The distances from the midpoint to all four fixed points of the trapezoid must be calculated, and the maximum value is dM)

[0165] latitudex: vertex latitude; latx: vertex conversion latitude;

[0166] latitudem: midpoint latitude; latm: midpoint conversion latitude;

[0167] longitudex: vertex longitude; lngx: vertex conversion longitude;

[0168] longitudem: midpoint longitude; lngm: midpoint conversion longitude;

[0169] latx=π*latitudex / 180

[0170] latm=π*latitudem / 180

[0171] lngx=π*longitudex / 180

[0172] lngm=π*longitudem / 180

[0173] a=latx-latm

[0174] b=lngx-lngm

[0175] s=2*arcsin((sin(a / 2)*sin(a / 2)+cos(latx)*cos(latm)*sin(b / 2)*sin(b / 2))^1 / 2)

[0176] S=s*6378.137

[0177] Among them, latitudex, longitudex: the latitude and longitude of the vertex, latitudem, longitudem: the latitude and longitude of the midpoint.

[0178] S5: Find the plant equipment and facilities within the maximum range of the trapezoidal midpoint of the cone projection, and the calculation method is as follows:

[0179] latitudet: target latitude; latt: target conversion latitude;

[0180] latitudem: midpoint latitude; latm: midpoint conversion latitude;

[0181] longitudet: target longitude; lngt: target conversion longitude;

[0182] longitudem: midpoint longitude; lngm: midpoint conversion longitude;

[0183] latt=π*latitudet / 180

[0184] latm=π*latitudem / 180

[0185] lngt=π*longitudet / 180

[0186] lngm=π*longitudem / 180

[0187] a=latt-latm

[0188] b = lngt-lngm

[0189] s=2*arcsin((sin(a / 2)*sin(a / 2)+cos(latt)*cos(latm)*sin(b / 2)*sin(b / 2))^1 / 2)

[0190] S=s*6378.137

[0191] S<=dM

[0192] S6: Find the plant equipment and facilities within the projection trapezoid of the visual cone from the points obtained in S5;

[0193] S7: Calculate the azimuth and elevation of the point obtained in S6, and the calculation method is as follows:

[0194] Angle_A: azimuth angle; Angle_E: elevation angle;

[0195] latitudet: target latitude; latt: target conversion latitude;

[0196] latitudec: camera latitude; latc: camera conversion latitude;

[0197] longitudet: target longitude; lngt: target conversion longitude;

[0198] longitudec: camera longitude; lngc: camera converted longitude;

[0199] altitudec: camera altitude; altitudet: target altitude;

[0200] d: intermediate variable;

[0201] D: distance between camera and target;

[0202] / / Calculate the azimuth angle

[0203] latt=latitudet*π / 180

[0204] latc=latitudec*π / 180

[0205] lngt=longitudet*π / 180

[0206] lngc=longitudec*π / 180

[0207] d=sin(latc)*sin(latt)+cos(latc)*cos(latt)*cos(lngc-lngt)

[0208] d=asin(cos(latc)*sin(lngc-lngt) / (1-(sin(latc)*sin(latt)+cos(latc)*cos(latt)*cos(lngc-lngt))^2)^1 / 2)

[0209] Angle_A=d*180 / π

[0210] When d = 1

[0211] Angle_A=0

[0212] When latt>latc

[0213] Angle_A=180-d

[0214] When latt<=latc, and lngt>lngc

[0215] Angle_A=360+d

[0216] / / Pitch angle calculation

[0217] `Angle_E=atan((altitudec-altitudet) / D)*180 / π`.

[0218] S8: Calculate the ratio of azimuth angle, elevation angle and field of view angle:

[0219] PA horizontal proportion; PE vertical proportion;

[0220] p: azimuth angle; t: pitch angle;

[0221] fVerAngle: vertical field of view angle; fHorAngle: horizontal field of view angle;

[0222] / / Calculate the horizontal ratio

[0223] PA=(Angle_A-(p-fHorAngle / 2)) / fHorAngle;

[0224] / / Calculate the vertical ratio

[0225] PE=(Angle_E-(360-t-fVerAngle / 2)) / fVerAngle.

[0226] When querying target points, most platforms generally use map display points or guide optoelectronic devices to corresponding locations to view their real-time videos. When the points in the map are frequent or there are many similar points, it is impossible to locate the device efficiently and accurately, resulting in misleading and incorrect identification.

[0227] This embodiment calculates the horizontal and vertical proportions of the target point in the video screen through the relative position of the target point and the optoelectronic device and the optical parameters of the device, and then displays the name of the target point in the corresponding position of the optoelectronic video screen. This allows users to accurately locate and identify the target device from the video screen, greatly facilitating the user's management of the equipment in their department and viewing the real-time action status of the equipment.

[0228] Figure 1 The method flow chart is shown, and the specific process is:

[0229] Step 1: Calculate the latitude and longitude of the vertex of the trapezoidal projection of the viewing cone based on the position parameters of the camera and its optical and gimbal parameters;

[0230] Step 2: Calculate the maximum distance from the projection of the viewing cone to the midpoint of the trapezoid on the map and from the midpoint to the vertex;

[0231] Step 3: Search for equipment and facilities of the department and its subordinate departments according to authority;

[0232] Step 4: Find the plant equipment and facilities within the maximum range of the trapezoidal midpoint of the frustum projection;

[0233] Step 5: From the points obtained within the maximum range, find the plant equipment and facilities within the projection trapezoid of the visual frustum;

[0234] Step 6: Calculate the azimuth and pitch of the points in the projection trapezoid of the viewing cone and their field of view angle ratio.

[0235] The technical solution provided by the present invention is further described in detail above through several specific implementation modes in order to highlight the advantages and benefits of the technical solution provided by the present invention. However, the several specific implementation modes described above are not intended to be used as limitations on the present invention. Any reasonable modification and improvement of the present invention, combination of implementation modes and equivalent substitution within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0236] In the description of this specification, only the preferred embodiments of the present invention are provided, and the scope of the rights of the present invention cannot be limited by this. In addition, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or N embodiments or examples in a suitable manner. In addition, in the absence of mutual contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" can explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "N" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. Any process or method description in the flowchart or otherwise described herein can be understood to represent a module, fragment or portion of code including one or more executable instructions for implementing the steps of a custom logic function or process, and the scope of the preferred embodiment of the present invention includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the art to which the embodiments of the present invention belong. The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logic function, can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, device or device and execute instructions), or in combination with these instruction execution systems, devices or devices. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit programs for use by an instruction execution system, device or device or in combination with these instruction execution systems, devices or devices. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection having one or N wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM).In addition, the computer readable medium can even be paper or other suitable medium on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, then editing, interpreting or processing in other suitable ways as necessary, and then storing it in a computer memory. It should be understood that the various parts of the present invention can be implemented with hardware, software, firmware, or a combination thereof. In the above-mentioned embodiment, N steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented with hardware, as in another embodiment, any one of the following technologies known in the art or their combination can be used to implement: a discrete logic circuit with a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit with a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0237] A person of ordinary skill in the art can understand that all or part of the steps carried by the method of the above-mentioned embodiment can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program, when executed, includes one or a combination of the steps of the method embodiment. In addition, each functional unit in each embodiment of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

Claims

1. A method for displaying a target video label based on a camera installation position and its optical parameters, characterized in that: The method comprises: Steps to collect surveillance camera parameters and PTZ movements; The step of obtaining a projection of a visual cone on the ground according to the monitoring camera parameters and the pan / tilt motion; A step of collecting target devices in the trapezoid where the projection of the visual frustum on the ground is located; The step of calculating the azimuth and elevation angle of the target device; A step of obtaining a proportion of the target device in the field of view according to the azimuth and elevation angle of the target device; The step of adding a label to the surveillance video corresponding to the target device according to the proportion of the target device in the field of view.

2. A method for displaying a target video label based on a camera installation position and its optical parameters according to claim 1, characterized in that: The longitude and latitude of the midpoint and the maximum distance from the midpoint to the vertex in the trapezoid where the projection of the visual frustum on the ground is located are calculated, a circle is drawn with the longitude and latitude of the midpoint as the center and the maximum distance from the midpoint to the vertex as the radius, the target device within the circle is searched, and the target device in the trapezoid where the projection of the visual frustum on the ground is continuously obtained.

3. The method for displaying a target video label based on a camera installation position and its optical parameters according to claim 2, characterized in that: The maximum distance from the midpoint to the vertex is calculated according to the distance between the upper base and the lower base of the trapezoid where the projection of the visual frustum on the ground is located, the midpoint of the height, and the longitude and latitude of the midpoint.

4. The method for displaying a target video label based on a camera installation position and its optical parameters according to claim 1, characterized in that: The azimuth and elevation angle of the target device are calculated based on the positional relationship of the target device relative to the monitoring camera, as well as the longitude and latitude of the target device and the longitude and latitude of the monitoring camera.

5. The method for displaying a target video label based on a camera installation position and its optical parameters according to claim 1, characterized in that: The monitoring camera parameters include latitude and longitude, installation height and ground height.

6. The method for displaying a target video label based on a camera installation position and its optical parameters according to claim 1, characterized in that: The trapezoid where the projection of the visual frustum on the ground is located is determined according to the longitude and latitude of the vertices of the trapezoid where the projection of the visual frustum on the ground is located, as well as the installation height, horizontal field of view angle, vertical field of view angle, azimuth angle and pitch angle of the monitoring camera.

7. The method for displaying a target video label based on a camera installation position and its optical parameters according to claim 1, characterized in that: According to the azimuth and pitch angle of the target device and the field of view of the monitoring camera, the proportion of the target device in the field of view is obtained.

8. A device for displaying target video labels based on camera installation position and its optical parameters, characterized in that: The device comprises: A module for collecting surveillance camera parameters and PTZ movements; A module for obtaining the projection of the visual cone on the ground according to the monitoring camera parameters and the pan / tilt motion; Collecting a module of a target device in a trapezoid where the projection of the visual frustum on the ground is located; A module for calculating the azimuth and elevation angle of the target device; A module for obtaining a proportion of the target device in the field of view according to the azimuth and pitch angle of the target device; A module for adding a label to the surveillance video corresponding to the target device according to the proportion of the target device in the field of view.

9. A computer storage medium for storing a computer program, characterized in that: When the computer program is read by a computer, the computer executes the method of claim 1 .

10. A computer, comprising a processor and a storage medium, characterized in that: When the processor reads the computer program stored in the storage medium, the computer executes the method of claim 1 .