CN111526334A - Imaging target position servo control strategy based on PID algorithm - Google Patents

Imaging target position servo control strategy based on PID algorithm Download PDF

Info

Publication number
CN111526334A
CN111526334A CN202010368998.6A CN202010368998A CN111526334A CN 111526334 A CN111526334 A CN 111526334A CN 202010368998 A CN202010368998 A CN 202010368998A CN 111526334 A CN111526334 A CN 111526334A
Authority
CN
China
Prior art keywords
image
servo control
camera
position servo
calculating
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
CN202010368998.6A
Other languages
Chinese (zh)
Other versions
CN111526334B (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.)
Shanghai Yishan Industrial Co.,Ltd.
Original Assignee
Hangzhou Jingyi Intelligent Science and Technology 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 Hangzhou Jingyi Intelligent Science and Technology Co Ltd filed Critical Hangzhou Jingyi Intelligent Science and Technology Co Ltd
Priority to CN202010368998.6A priority Critical patent/CN111526334B/en
Publication of CN111526334A publication Critical patent/CN111526334A/en
Application granted granted Critical
Publication of CN111526334B publication Critical patent/CN111526334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Studio Devices (AREA)

Abstract

The invention relates to an imaging target position servo control strategy based on a PID algorithm, which comprises an omnidirectional pan-tilt camera, wherein the omnidirectional pan-tilt camera is provided with a mechanism rotating horizontally by 360 degrees and vertically by 120 degrees, an image processor and a camera for image acquisition are arranged in the omnidirectional pan-tilt camera, and the image processor is provided with a position servo control method, which comprises the following steps: (1) acquiring an image f of the monitored environmenti(x, y); (2) the image processor extracts the position (x) of the monitoring targeto(i),yo(i) ); (3) calculating a position difference e (i) between the image center and the image center, and calculating angle parameters sin theta and cos theta; (4) calculating an adjusting speed omega based on a PID algorithm; (5) decomposing the regulation speed omega into a horizontal speed omegaHAnd velocity ω in the vertical directionV

Description

Imaging target position servo control strategy based on PID algorithm
Technical Field
The invention relates to a PID algorithm-based imaging target position servo control strategy, and belongs to the field of video monitoring.
Background
At present, surveillance cameras play more and more important roles in work and life of people, such as theft prevention, disaster prevention, assistance in the detection of civil and criminal cases, electronic traffic policemen and traffic flow management. However, the existing monitoring cameras are all fixed, and the shooting angle cannot be adjusted according to the position of a monitored target. Therefore, a monitoring dead angle is formed, the monitored target cannot be imaged, or the imaging area of the monitored target is located in the edge area of the image, the resolution is low, and the subsequent processing is difficult. Therefore, the intelligent monitoring camera is provided for tracking the suspicious monitored target, so that the imaging area of the suspicious monitored target is always in the central area of the image, and the imaging effect is optimal. Among them, how to control the camera to track the target quickly and stably becomes a subject.
Disclosure of Invention
The invention aims to overcome the technical defects and provides an imaging target position servo control strategy based on a PID algorithm, and the adopted technical scheme is as follows:
an imaging target position servo control strategy based on a PID algorithm comprises an omnidirectional pan-tilt camera, wherein the omnidirectional pan-tilt camera is provided with a mechanism rotating by 360 degrees horizontally and 120 degrees vertically, an image processor and a camera for image acquisition are arranged inside the omnidirectional pan-tilt camera, the image processor is provided with a position servo control method, and the position servo control method comprises the following steps:
(1) the image processor acquires the image of the monitored environment through the camera to obtain an image fi(X, Y), where X and Y are pixel coordinates, X ϵ (1, X), Y ϵ (1, Y), where X is the maximum value of the X pixel coordinates, Y is the maximum value of the Y pixel coordinates, and i is the calculated sequence value;
(2) the image processor extracts the position (x) of the monitoring targeto(i),yo(i));
(3) Calculating a monitoring target (x)o(i),yo(i) Position difference e (i) = from the center of the image
Figure 142553DEST_PATH_IMAGE002
Calculating an angle parameter sin θ = (y)o(i)-Y/2)/e(i),cosθ=(xo(i)-X/2)/e(i);
(4) And calculating the adjusting speed omega of the omnidirectional pan-tilt camera: ω = kp×e(i)+ki×
Figure 803341DEST_PATH_IMAGE004
+kd× (e (i) -e (i-1)), wherein kpIs a proportionality coefficient, kiIs an integral coefficient, kdIs a differential coefficient, n is an intermediate variable;
(5) decomposing the regulation speed omega into a horizontal speed omegaHAnd velocity ω in the vertical directionV:ωH=ω×cosθ,ωV=ω×sinθ。
The velocity ω in the horizontal directionHSetting an upper limit value omegaHmaxSaid velocity ω in the vertical directionVSetting an upper limit value omegaVmax
The implementation of the invention has the positive effects that: 1. the PID classical algorithm can track the monitored target rapidly and stably, and the parameter setting is simplified; 2. the monitoring imaging area is always positioned in the central area of the image, and the imaging effect is optimal. .
Drawings
Fig. 1 is an external view of an omnidirectional pan-tilt camera;
fig. 2 is an image processing schematic.
Detailed Description
The invention will now be further described with reference to the accompanying drawings in which:
referring to fig. 1-2, the imaging target position servo control strategy based on the PID algorithm includes an omnidirectional pan-tilt camera, which is provided with a mechanism for rotating horizontally by 360 degrees and vertically by 120 degrees. The omnidirectional pan-tilt camera is internally provided with an image processor and a camera for image acquisition, wherein the image processor is provided with a position servo control method, and the position servo control method comprises the following steps:
(1) the image processor acquires the image of the monitored environment through the camera to obtain an image fi(X, Y), where X and Y are pixel coordinates, X ϵ (1, X), Y ϵ (1, Y), where X is the maximum value of the X pixel coordinates, Y is the maximum value of the Y pixel coordinates, and i is the calculated sequence value;
(2) the image processor extracts the position (x) of the monitoring targeto(i),yo(i));
The monitoring target can be a vehicle, a person and the like, and is determined according to the application.
(3) Calculating a monitoring target (x)o(i),yo(i) Position difference e (i) = from the center of the image
Figure DEST_PATH_IMAGE005
Calculating an angle parameter sin θ = (y)o(i)-Y/2)/e(i),cosθ=(xo(i)-X/2)/e(i);
The difference from the monitored target to the center of the image (X/2, Y/2) and the angular direction related parameters sin theta and cos theta are calculated.
(4) And calculating the adjusting speed omega of the omnidirectional pan-tilt camera: ω = kp×e(i)+ki×
Figure DEST_PATH_IMAGE006
+kd× (e (i) -e (i-1)), wherein kpIs a proportionality coefficient, kiIs an integral coefficient, kdIs a differential coefficient, n is an intermediate variable;
adopting a PID control algorithm to calculate the speed of the omnidirectional pan-tilt camera which needs to be subjected to direction adjustment, wherein the proportionality coefficient kpIntegral coefficient kiDifferential coefficient kdAnd calculating the magnitude of the adjusting speed according to the position difference e (i).
(5) Decomposing the regulation speed omega into a horizontal speed omegaHAnd velocity ω in the vertical directionV:ωH=ω×cosθ,ωV=ω×sinθ。
Since the omni-directional pan-tilt camera has two degrees of freedom, i.e., rotation in the horizontal direction and rotation in the vertical direction, the adjustment speed ω is resolved into two directions.
Optionally, in order to ensure that the monitoring target can clearly image in the adjustment process of the omnidirectional pan-tilt camera, the horizontal speed ω is adjustedHSetting an upper limit value omegaHmaxSaid velocity ω in the vertical directionVSetting an upper limit value omegaVmax

Claims (2)

1. Imaging target position servo control strategy based on PID algorithm, including the cloud platform camera of qxcomm technology, the cloud platform camera of qxcomm technology set up 360 degrees rotations of level and perpendicular 120 degrees rotatory mechanisms, inside sets up image processor and carries out image acquisition's camera, its characterized in that: the image processor is provided with a position servo control method, and the position servo control method comprises the following steps:
(1) the image processor acquires the image of the monitored environment through the camera to obtain an image fi(X, Y), where X and Y are pixel coordinates, X ϵ (1, X), Y ϵ (1, Y), where X is the maximum value of the X pixel coordinates, Y is the maximum value of the Y pixel coordinates, and i is the calculated sequence value;
(2) the image processor extracts the position (x) of the monitoring targeto(i),yo(i));
(3) Calculating a monitoring target (x)o(i),yo(i) Position difference e (i) = from the center of the image
Figure 351238DEST_PATH_IMAGE002
Calculating an angle parameter sin θ = (y)o(i)-Y/2)/e(i),cosθ=(xo(i)-X/2)/e(i);
(4) And calculating the adjusting speed omega of the omnidirectional pan-tilt camera: ω = kp×e(i)+ki×
Figure 799537DEST_PATH_IMAGE004
+kd× (e (i) -e (i-1)), wherein kpIs a proportionality coefficient, kiIs an integral coefficient, kdIs a differential coefficient, n is an intermediate variable;
(5) decomposing the regulation speed omega into a horizontal speed omegaHAnd velocity ω in the vertical directionV:ωH=ω×cosθ,ωV=ω×sinθ。
2. The PID algorithm-based imaging target position servo control strategy of claim 1, wherein: the velocity ω in the horizontal directionHSetting an upper limit value omegaHmaxSaid velocity ω in the vertical directionVSetting an upper limit value omegaVmax
CN202010368998.6A 2020-05-03 2020-05-03 Imaging target position servo control method based on PID algorithm Active CN111526334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010368998.6A CN111526334B (en) 2020-05-03 2020-05-03 Imaging target position servo control method based on PID algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010368998.6A CN111526334B (en) 2020-05-03 2020-05-03 Imaging target position servo control method based on PID algorithm

Publications (2)

Publication Number Publication Date
CN111526334A true CN111526334A (en) 2020-08-11
CN111526334B CN111526334B (en) 2021-08-20

Family

ID=71906726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010368998.6A Active CN111526334B (en) 2020-05-03 2020-05-03 Imaging target position servo control method based on PID algorithm

Country Status (1)

Country Link
CN (1) CN111526334B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045548A (en) * 2010-12-28 2011-05-04 天津市亚安科技电子有限公司 Method for controlling automatic zoom of PTZ (pan/tilt/zoom) camera
CN105635657A (en) * 2014-11-03 2016-06-01 航天信息股份有限公司 Camera holder omnibearing interaction method and device based on face detection
KR101643193B1 (en) * 2015-04-17 2016-07-27 한화탈레스 주식회사 Unmanned underwater vehicle using mass moving
CN105929850A (en) * 2016-05-18 2016-09-07 中国计量大学 Unmanned plane system and method with capabilities of continuous locking and target tracking
CN107065924A (en) * 2017-03-15 2017-08-18 普宙飞行器科技(深圳)有限公司 The vehicle-mounted landing system of unmanned plane, can vehicle-mounted landing unmanned plane and landing method
CN108495085A (en) * 2018-03-14 2018-09-04 成都新舟锐视科技有限公司 A kind of ball machine automatic tracking control method and system based on moving target detection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045548A (en) * 2010-12-28 2011-05-04 天津市亚安科技电子有限公司 Method for controlling automatic zoom of PTZ (pan/tilt/zoom) camera
CN105635657A (en) * 2014-11-03 2016-06-01 航天信息股份有限公司 Camera holder omnibearing interaction method and device based on face detection
KR101643193B1 (en) * 2015-04-17 2016-07-27 한화탈레스 주식회사 Unmanned underwater vehicle using mass moving
CN105929850A (en) * 2016-05-18 2016-09-07 中国计量大学 Unmanned plane system and method with capabilities of continuous locking and target tracking
CN107065924A (en) * 2017-03-15 2017-08-18 普宙飞行器科技(深圳)有限公司 The vehicle-mounted landing system of unmanned plane, can vehicle-mounted landing unmanned plane and landing method
CN108495085A (en) * 2018-03-14 2018-09-04 成都新舟锐视科技有限公司 A kind of ball machine automatic tracking control method and system based on moving target detection

Also Published As

Publication number Publication date
CN111526334B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
US10033924B2 (en) Panoramic view imaging system
US10339386B2 (en) Unusual event detection in wide-angle video (based on moving object trajectories)
US9955074B2 (en) Target tracking method and system for intelligent tracking high speed dome camera
CN102902884A (en) PTZ (pan/tilt/zoom) camera automatic positioning and angle calculating method
JP4810582B2 (en) Mobile object image tracking apparatus and method
WO2017045326A1 (en) Photographing processing method for unmanned aerial vehicle
CN106469444B (en) Rapid image fusion method for eliminating splicing gap
CN102819847A (en) Method for extracting movement track based on PTZ mobile camera
JP2008204384A5 (en)
JP2009077405A (en) Security camera system and method of steering beam to change field of view
CN107509055A (en) A kind of rotary panorama focus identification optronic tracker and its implementation
CN107886051A (en) Watercraft identification recognition methods based on image
CN108534760A (en) A kind of image measurement method based on binocular camera and laser range sensor
CN107038714B (en) Multi-type visual sensing cooperative target tracking method
TWI741436B (en) A system for panoramic imaging
CN107992837A (en) Road full-view modeling and vehicle detecting and tracking method based on single PTZ monitor cameras
JP2011030015A5 (en)
WO2022041014A1 (en) Gimbal and control method and device therefor, photographing apparatus, system, and storage medium thereof
CN111314609A (en) Method and device for controlling pan-tilt tracking camera shooting
CN111526334B (en) Imaging target position servo control method based on PID algorithm
WO2021248564A1 (en) Panoramic big data application monitoring and control system
CN111766902B (en) Control method for realizing video pan-tilt steering based on longitude and latitude coordinates
CN113156996A (en) Pod control adaptive gain method for target tracking
CN113743286A (en) Target monitoring system and method for multi-source signal fusion
CN117152243A (en) Alarm positioning method based on monocular zooming of PTZ camera

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210804

Address after: 200333 room 201-2, floor 2, building 2, No. 2691, Zhenbei Road, Putuo District, Shanghai

Applicant after: Shanghai Yishan Industrial Co.,Ltd.

Address before: 310013 no.256, 6th floor, building 2, Huahong building, 248 Tianmushan Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant before: HANGZHOU JINGYI INTELLIGENT SCIENCE & TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant