CN104700409A - Method for automatically adjusting preset position of camera in accordance with monitoring target - Google Patents

Method for automatically adjusting preset position of camera in accordance with monitoring target Download PDF

Info

Publication number
CN104700409A
CN104700409A CN201510110017.7A CN201510110017A CN104700409A CN 104700409 A CN104700409 A CN 104700409A CN 201510110017 A CN201510110017 A CN 201510110017A CN 104700409 A CN104700409 A CN 104700409A
Authority
CN
China
Prior art keywords
video camera
angle
camera
monitoring objective
rotation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510110017.7A
Other languages
Chinese (zh)
Other versions
CN104700409B (en
Inventor
叶有名
常政威
唐曙光
吴莉娟
冯世林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Sichuan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Sichuan Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Sichuan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201510110017.7A priority Critical patent/CN104700409B/en
Publication of CN104700409A publication Critical patent/CN104700409A/en
Application granted granted Critical
Publication of CN104700409B publication Critical patent/CN104700409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a method for automatically adjusting a preset position of a camera in accordance with a monitoring target; the method comprises the following steps: acquiring the position of the monitoring target; determining a two-dimensional horizontal rotation angle and a two-dimensional vertical rotation angle of the camera, with respect to the monitoring target, in a three-dimensional coordinate system; respectively translating the two-dimensional horizontal rotation angle and the two-dimensional vertical rotation angle into three-dimensional space angles; calculating a horizontal-direction angle and a vertical-direction angle of a camera lens with respect to the camera according to the two-dimensional horizontal rotation angle, the two-dimensional vertical rotation angle and the three-dimensional space angles; obtaining a focal length and a viewing angle according to a distance between the monitoring target and the camera, the width of a monitoring region and the length of a diagonal line of an imaging element of the camera lens. By adopting the method, the preset position of the camera can be generated automatically, so that the camera is capable of being rotated to the preset position rapidly and accurately, the deficiencies of insufficient flexibility, low accuracy and low precision in a visual testing layout method are avoided, and the waste of money caused by many times of onsite scene survey is avoided.

Description

A kind of method automatically adjusting preset positions of camera according to monitoring objective
Technical field
The present invention relates to field of image recognition, particularly relate to a kind of method adjusting preset positions of camera.
Background technology
Video monitoring system is applied to a lot of occasion, such as, for transformer station's unattended system.Video monitoring system, as the unattended basis of support transformer station, needs the running status of real-time monitoring equipment.The layout of current video camera is all first install according to two-dimentional drawing, again according to the presetting bit of naked eyes identification adjustment video camera after installing, belongs to range estimation layout method.This method lacks dirigibility, and precision is low, and differs and monitor equipment exactly surely.Adopt range estimation layout method, often need repeatedly to carry out scene exploration on the spot, the fund brought waste.
Summary of the invention
Namely object of the present invention is to overcome the deficiencies in the prior art, provides a kind of method automatically adjusting preset positions of camera according to monitoring objective.Adopt the method, automatically can generate preset positions of camera according to the position of monitoring objective, enable video camera forward presetting bit to fast and accurately, avoid estimating the deficiency that layout method's dirigibility is not enough, accuracy is low, precision is low.
Object of the present invention is achieved through the following technical solutions:
Automatically adjust a method for preset positions of camera according to monitoring objective, comprise the steps:
S1: the three-dimensional physical model importing monitored region, obtains the position of monitoring objective, the video camera that chosen distance monitoring objective is nearest;
S2: determine that video camera is relative to the two-dimensional level anglec of rotation of monitoring objective in three-dimensional system of coordinate and the second vertical anglec of rotation;
S3: the two-dimensional level anglec of rotation and the second vertical anglec of rotation are separately converted to three dimensions angle;
S4: according to the two-dimensional level anglec of rotation, the second vertical anglec of rotation and three dimensions angle calculation camera lens relative to video camera angle in the horizontal direction and the angle of vertical direction, camera lens is the presetting bit angle of video camera relative to the angle of video camera angle in the horizontal direction and vertical direction;
S5: obtain focal length and visual angle according to the distance of monitoring objective and video camera, guarded region width and camera lens image-forming component catercorner length;
The presetting bit angle of video camera, focal length and visual angle form presetting bit jointly.
Further, in described S2, in three-dimensional system of coordinate, the center of the center of video camera and monitoring objective is projected in X-Z plane respectively, obtain subpoint C ", P ", line segment C " P " be the two-dimensional level anglec of rotation α of video camera relative to monitoring objective with the angle of X-axis; Projected respectively on an x-y plane at the center of the center of video camera and monitoring objective, obtain subpoint C ', P ', line segment C ' P ' is the second vertical anglec of rotation β of video camera relative to monitoring objective with the angle of Y-axis.
Further, coordinate in the center of video camera and the central three-dimensional space coordinates of monitoring objective is respectively C (Cx, Cy, Cz), P (Px, Py, Pz), video camera is α relative to the two-dimensional level anglec of rotation of monitoring objective, and video camera is β relative to the second vertical anglec of rotation of monitoring objective;
In described S3:
The three dimensions angle that α is corresponding is α 1;
As Cy < Py, then α 1=-90 °-α;
As Cy >=Py, then α 1=-α;
The three dimensions angle that β is corresponding is β 1;
When | Cx-Px|≤0.1 & Cz > Pz, then β 1=180 °;
When | Cx-Px|≤0.1 & Cz≤Pz, then β 1=0 °;
When | Cz-Pz|≤0.1 & Cx > Px, then β 1=270 °;
When | Cz-Pz|≤0.1 & Cx≤Px, then β 1=90 °;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx > Px & Cz > Pz, then β 1=-90 °-β;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx > Px & Cz > Pz, then β 1=-β;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx < Px & Cz > Pz, then β 1=90 °+β;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx < Px & Cz > Pz, then β 1=β.
Further, video camera is α relative to the two-dimensional level anglec of rotation of monitoring objective, and video camera be three dimensions angle that β, α are corresponding is the three dimensions angle that α 1, β is corresponding relative to the second vertical anglec of rotation of monitoring objective is β 1;
In described S4, &alpha; 2 = &alpha; 1 - &alpha; &beta; 2 = &beta; 1 - &beta; ;
α 2 be camera lens relative to video camera angle in the horizontal direction, β 2 be camera lens relative to video camera in vertical angle;
Agreement camera lens is towards β 2=0 ° during the Y-axis negative direction of video camera, and camera lens is towards α 2=0 ° during the axle positive dirction of video camera.
Further, in described S5:
f=w*λ*Dis/W
fov = 2 * arctan ( L 2 / f ) ;
Wherein, the distance that f is focal length, fov is visual angle, W is guarded region width, L is camera lens image-forming component catercorner length, Dis is monitoring objective and video camera, λ are that guarded region is presented at ratio shared on image.
Advantage of the present invention and beneficial effect are:
Adopt the method, automatically preset positions of camera can be generated according to the position of monitoring objective, enable video camera forward presetting bit to fast and accurately, avoid estimating the deficiency that layout method dirigibility is not enough, accuracy is low, precision is low, avoid and repeatedly carry out scene on the spot and survey the fund brought and waste.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiments of the invention, be briefly described to the accompanying drawing used required for describing in the embodiment of the present invention below.Apparent, the accompanying drawing in the following describes is only some embodiments recorded in the present invention, to those skilled in the art, when not paying creative work, according to accompanying drawing below, can also obtain other accompanying drawing.
Fig. 1 is the schematic diagram of the two-dimensional level anglec of rotation and the second vertical anglec of rotation;
Fig. 2 is the schematic diagram of camera supervised scope.
Embodiment
In order to make those skilled in the art understand the present invention better, below in conjunction with the accompanying drawing in the embodiment of the present invention, clear, complete description is carried out to the technical scheme in the embodiment of the present invention.Apparent, embodiment described below is only the part in the embodiment of the present invention, instead of all.Based on the embodiment that the present invention records, other all embodiment that those skilled in the art obtain when not paying creative work, all in the scope of protection of the invention.
Embodiment:
Automatically adjust a method for preset positions of camera according to monitoring objective, comprise the steps:
S1: the three-dimensional physical model importing monitored region, obtains the position of monitoring objective, the video camera that chosen distance monitoring objective is nearest;
S2: determine that video camera is relative to the two-dimensional level anglec of rotation of monitoring objective in three-dimensional system of coordinate and the second vertical anglec of rotation;
S3: the two-dimensional level anglec of rotation and the second vertical anglec of rotation are separately converted to three dimensions angle;
S4: according to the two-dimensional level anglec of rotation, the second vertical anglec of rotation and three dimensions angle calculation camera lens relative to video camera angle in the horizontal direction and the angle of vertical direction, camera lens is the presetting bit angle of video camera relative to the angle of video camera angle in the horizontal direction and vertical direction;
S5: obtain focal length and visual angle according to the distance of monitoring objective and video camera, guarded region width and camera lens image-forming component catercorner length;
The presetting bit angle of video camera, focal length and visual angle form presetting bit jointly.
Below S2 ~ S5 is described in detail.
To the detailed description of S2.
As shown in Figure 1, in three-dimensional system of coordinate, the center of video camera is some C, and the center of monitoring objective is a P.
The center of the center of video camera and monitoring objective is projected in X-Z plane respectively, obtains subpoint C ", P ", line segment C " P " be the two-dimensional level anglec of rotation α of video camera relative to monitoring objective with the angle of X-axis,
Projected respectively on an x-y plane at the center of the center of video camera and monitoring objective, obtain subpoint C ', P ', line segment C ' P ' is the second vertical anglec of rotation β of video camera relative to monitoring objective with the angle of Y-axis,
To the detailed description of S3.
Coordinate in the center of video camera and the central three-dimensional space coordinates of monitoring objective is respectively C (Cx, Cy, Cz), P (Px, Py, Pz).
The three dimensions angle that α is corresponding is α 1;
As Cy < Py, then α 1=-90 °-α;
As Cy >=Py, then α 1=-α;
The three dimensions angle that β is corresponding is β 1;
When | Cx-Px|≤0.1 & Cz > Pz, then β 1=180 °;
When | Cx-Px|≤0.1 & Cz≤Pz, then β 1=0 °;
When | Cz-Pz|≤0.1 & Cx > Px, then β 1=270 °;
When | Cz-Pz|≤0.1 & Cx≤Px, then β 1=90 °;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx > Px & Cz > Pz, then β 1=-90 °-β;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx > Px & Cz < Pz, then β 1=-β;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx < Px & Cz > Pz, then β 1=90 °+β;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx < Px & Cz > Pz, then β 1=β.
So, the two-dimensional level anglec of rotation and the second vertical anglec of rotation can be separately converted to three dimensions angle.
To the detailed description of S4.
&alpha; 2 = &alpha; 1 - &alpha; &beta; 2 = &beta; 1 - &beta; ;
α 2 be camera lens relative to video camera angle in the horizontal direction, β 2 be camera lens relative to video camera in vertical angle.Agreement camera lens is towards β 2=0 ° during the Y-axis negative direction of video camera, and camera lens is towards α 2=0 ° during the axle positive dirction of video camera.
α 2 and β 2 is the presetting bit angle of video camera.
To the detailed description of S5.
As shown in Figure 2, the quadrilateral that A, B, D, E point is formed is the guarded region of video camera, guarded region width W=| AB|, the distance Dis=|CP| of monitoring objective and video camera.
Focal length and visual angle is obtained by following formulae discovery:
f=w*λ*Dis/W
fov = 2 * arctan ( L 2 / f ) ;
Wherein, f is focal length, fov is visual angle, L is camera lens image-forming component catercorner length, λ is that guarded region is presented at ratio shared on image.
λ=1 represents all over the screen.
The presetting bit angle of video camera, focal length and visual angle form presetting bit jointly.
Need on picture during display monitoring target, video camera is made namely to forward the presetting bit of above-mentioned steps production fast and accurately to, avoid estimating the deficiency that layout method dirigibility is not enough, accuracy is low, precision is low, avoid and repeatedly carry out scene on the spot and survey the fund brought and waste.
As mentioned above, just the present invention can be realized preferably.

Claims (5)

1. automatically adjust a method for preset positions of camera according to monitoring objective, it is characterized in that, comprise the steps:
S1: the three-dimensional physical model importing monitored region, obtains the position of monitoring objective, the video camera that chosen distance monitoring objective is nearest;
S2: determine that video camera is relative to the two-dimensional level anglec of rotation of monitoring objective in three-dimensional system of coordinate and the second vertical anglec of rotation;
S3: the two-dimensional level anglec of rotation and the second vertical anglec of rotation are separately converted to three dimensions angle;
S4: according to the two-dimensional level anglec of rotation, the second vertical anglec of rotation and three dimensions angle calculation camera lens relative to video camera angle in the horizontal direction and the angle of vertical direction, camera lens is the presetting bit angle of video camera relative to the angle of video camera angle in the horizontal direction and vertical direction;
S5: obtain focal length and visual angle according to the distance of monitoring objective and video camera, guarded region width and camera lens image-forming component catercorner length;
The presetting bit angle of video camera, focal length and visual angle form presetting bit jointly.
2. a kind of method automatically adjusting preset positions of camera according to monitoring objective according to claim 1, is characterized in that:
In described S2, in three-dimensional system of coordinate, the center of the center of video camera and monitoring objective is projected in X-Z plane respectively, obtains subpoint C ", P ", line segment C " P " be the two-dimensional level anglec of rotation α of video camera relative to monitoring objective with the angle of X-axis; Projected respectively on an x-y plane at the center of the center of video camera and monitoring objective, obtain subpoint C ', P ', line segment C ' P ' is the second vertical anglec of rotation β of video camera relative to monitoring objective with the angle of Y-axis.
3. a kind of method automatically adjusting preset positions of camera according to monitoring objective according to claim 1, is characterized in that:
Coordinate in the center of video camera and the central three-dimensional space coordinates of monitoring objective is respectively C (Cx, Cy, Cz), P (Px, Py, Pz), video camera is α relative to the two-dimensional level anglec of rotation of monitoring objective, and video camera is β relative to the second vertical anglec of rotation of monitoring objective;
In described S3:
The three dimensions angle that α is corresponding is α 1;
As Cy < Py, then α 1=-90 °-α;
As Cy >=Py, then α 1=-α;
The three dimensions angle that β is corresponding is β 1;
When | Cx-Px|≤0.1 & Cz > Pz, then β 1=180 °;
When | Cx-Px|≤0.1 & Cz≤Pz, then β 1=0 °;
When | Cz-Pz|≤0.1 & Cx > Px, then β 1=270 °;
When | Cz-Pz|≤0.1 & Cx≤Px, then β 1=90 °;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx > Px & Cz > Pz, then β 1=-90 °-β;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx > Px & Cz < Pz, then β 1=-β;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx < Px & Cz > Pz, then β 1=90 °+β;
When | Cx-Px| > 0.1 & | Cz-Pz| > 0.1 & Cx < Px & Cz > Pz, then β 1=β.
4. a kind of method automatically adjusting preset positions of camera according to monitoring objective according to claim 1, is characterized in that:
Video camera is α relative to the two-dimensional level anglec of rotation of monitoring objective, and video camera be three dimensions angle that β, α are corresponding is the three dimensions angle that α 1, β is corresponding relative to the second vertical anglec of rotation of monitoring objective is β 1;
In described S4, &alpha; 2 = &alpha; 1 - &alpha; &beta; 2 = &beta; 1 - &beta; ;
α 2 be camera lens relative to video camera angle in the horizontal direction, β 2 be camera lens relative to video camera in vertical angle;
Agreement camera lens is towards β 2=0 ° during the Y-axis negative direction of video camera, and camera lens is towards α 2=0 ° during the axle positive dirction of video camera.
5. a kind of method automatically adjusting preset positions of camera according to monitoring objective according to claim 1, is characterized in that:
In described S5:
f=w*λ*Dis/W
fov = 2 * arctan ( L 2 / f ) ;
Wherein, the distance that f is focal length, fov is visual angle, W is guarded region width, L is camera lens image-forming component catercorner length, Dis is monitoring objective and video camera, λ is that guarded region is presented at ratio shared on image.
CN201510110017.7A 2015-03-13 2015-03-13 A method of according to monitoring objective adjust automatically preset positions of camera Active CN104700409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510110017.7A CN104700409B (en) 2015-03-13 2015-03-13 A method of according to monitoring objective adjust automatically preset positions of camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510110017.7A CN104700409B (en) 2015-03-13 2015-03-13 A method of according to monitoring objective adjust automatically preset positions of camera

Publications (2)

Publication Number Publication Date
CN104700409A true CN104700409A (en) 2015-06-10
CN104700409B CN104700409B (en) 2018-09-11

Family

ID=53347491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510110017.7A Active CN104700409B (en) 2015-03-13 2015-03-13 A method of according to monitoring objective adjust automatically preset positions of camera

Country Status (1)

Country Link
CN (1) CN104700409B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635698A (en) * 2016-04-01 2016-06-01 成都信息工程大学 Generation method of optimal monitoring position according to monitoring target position
CN106027887A (en) * 2016-05-20 2016-10-12 北京格灵深瞳信息技术有限公司 Box and ball linkage control method and device aiming at rotating mirror holder, as well as electronic equipment
CN107943108A (en) * 2017-12-11 2018-04-20 日立楼宇技术(广州)有限公司 Fully-mechanized mining working it is automatic with machine image pickup method, device and system
CN109815813A (en) * 2018-12-21 2019-05-28 深圳云天励飞技术有限公司 Image processing method and Related product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103148832A (en) * 2013-01-30 2013-06-12 天津市亚安科技股份有限公司 Detection method of installation inclination angle of video camera
CN103237198A (en) * 2013-04-15 2013-08-07 四川华雁信息产业股份有限公司 Camera coordinated processing method, camera coordinated processing device and camera
CN103826103A (en) * 2014-02-27 2014-05-28 浙江宇视科技有限公司 Cruise control method for tripod head video camera
CN103905792A (en) * 2014-03-26 2014-07-02 武汉烽火众智数字技术有限责任公司 3D positioning method and device based on PTZ surveillance camera

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103148832A (en) * 2013-01-30 2013-06-12 天津市亚安科技股份有限公司 Detection method of installation inclination angle of video camera
CN103237198A (en) * 2013-04-15 2013-08-07 四川华雁信息产业股份有限公司 Camera coordinated processing method, camera coordinated processing device and camera
CN103826103A (en) * 2014-02-27 2014-05-28 浙江宇视科技有限公司 Cruise control method for tripod head video camera
CN103905792A (en) * 2014-03-26 2014-07-02 武汉烽火众智数字技术有限责任公司 3D positioning method and device based on PTZ surveillance camera

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635698A (en) * 2016-04-01 2016-06-01 成都信息工程大学 Generation method of optimal monitoring position according to monitoring target position
CN105635698B (en) * 2016-04-01 2018-07-27 成都信息工程大学 A method of Optimal Supervisory Control position is generated according to monitoring objective position
CN106027887A (en) * 2016-05-20 2016-10-12 北京格灵深瞳信息技术有限公司 Box and ball linkage control method and device aiming at rotating mirror holder, as well as electronic equipment
CN106027887B (en) * 2016-05-20 2019-01-25 北京格灵深瞳信息技术有限公司 For the method, apparatus and electronic equipment of the rifle ball linkage control of rotating mirror holder
CN107943108A (en) * 2017-12-11 2018-04-20 日立楼宇技术(广州)有限公司 Fully-mechanized mining working it is automatic with machine image pickup method, device and system
CN107943108B (en) * 2017-12-11 2021-03-23 日立楼宇技术(广州)有限公司 Automatic tracking shooting method, device and system for fully mechanized coal mining face
CN109815813A (en) * 2018-12-21 2019-05-28 深圳云天励飞技术有限公司 Image processing method and Related product

Also Published As

Publication number Publication date
CN104700409B (en) 2018-09-11

Similar Documents

Publication Publication Date Title
US9197866B2 (en) Method for monitoring a traffic stream and a traffic monitoring device
CN103630072B (en) The layout optimization method of video camera in two CCD camera measure system
CN105716542B (en) A kind of three-dimensional data joining method based on flexible characteristic point
CN109146980A (en) The depth extraction and passive ranging method of optimization based on monocular vision
CN109035320A (en) Depth extraction method based on monocular vision
CN110246175A (en) Intelligent Mobile Robot image detecting system and method for the panorama camera in conjunction with holder camera
US11842516B2 (en) Homography through satellite image matching
CN105118055A (en) Camera positioning correction calibration method and system
CN103278138A (en) Method for measuring three-dimensional position and posture of thin component with complex structure
CN103148832B (en) The detection method of installation inclination angle of video camera
US9214024B2 (en) Three-dimensional distance measurement apparatus and method therefor
CN102622767A (en) Method for positioning binocular non-calibrated space
CN108362205B (en) Space distance measuring method based on fringe projection
CN104318604A (en) 3D image stitching method and apparatus
CN104700409A (en) Method for automatically adjusting preset position of camera in accordance with monitoring target
CN110779491A (en) Method, device and equipment for measuring distance of target on horizontal plane and storage medium
CN105469412A (en) Calibration method of assembly error of PTZ camera
CN106709955A (en) Space coordinate system calibrate system and method based on binocular stereo visual sense
CN102694963A (en) Method for acquiring shadeless target image
US20180040138A1 (en) Camera-based method for measuring distance to object (options)
KR20150002995A (en) Distortion Center Correction Method Applying 2D Pattern to FOV Distortion Correction Model
Wang et al. Corners positioning for binocular ultra-wide angle long-wave infrared camera calibration
CN112907647A (en) Three-dimensional space size measurement method based on fixed monocular camera
JP2009229439A (en) System and method for measuring three-dimensional geometry
CN104346813A (en) Method for calibrating camera parameters in flame emission tomography system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant