CN103841333B - A kind of presetting bit method and control system - Google Patents

A kind of presetting bit method and control system Download PDF

Info

Publication number
CN103841333B
CN103841333B CN201410118637.0A CN201410118637A CN103841333B CN 103841333 B CN103841333 B CN 103841333B CN 201410118637 A CN201410118637 A CN 201410118637A CN 103841333 B CN103841333 B CN 103841333B
Authority
CN
China
Prior art keywords
line number
focus
preset
value
current
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.)
Active
Application number
CN201410118637.0A
Other languages
Chinese (zh)
Other versions
CN103841333A (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.)
Chengdu Ruitong Video Technology Co Ltd
Original Assignee
CHENGDU POWERVIEW 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 CHENGDU POWERVIEW SCIENCE AND TECHNOLOGY Co Ltd filed Critical CHENGDU POWERVIEW SCIENCE AND TECHNOLOGY Co Ltd
Priority to CN201410118637.0A priority Critical patent/CN103841333B/en
Publication of CN103841333A publication Critical patent/CN103841333A/en
Application granted granted Critical
Publication of CN103841333B publication Critical patent/CN103841333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Focusing (AREA)

Abstract

The invention discloses a kind of presetting bit method and control system, call including presetting bit setting and presetting bit, presetting bit arranges mainly according to the current directional information of ball machine and amplification to determine current wire size, and directional information is stored with wire size, and it is searching wire size according to the current directional information of ball machine that presetting bit is called, and according to ball machine be sent to video camera amplification determine work as front focal length, call so as to carry out quickly and accurately presetting bit.

Description

Presetting bit method and control system
Technical Field
The invention relates to the field of cameras and video monitoring, in particular to a presetting bit method and a control system.
Background
In the field of security monitoring, monitored key areas need to be linked with the operation condition of a dome camera, a plurality of specific monitoring area positions need to be set and stored in a rear-end controller, and when the areas need to be monitored, the controller calls the set preset positions by sending commands. The preset bit setting and calling mode usually needs to store direction information, Zoom (magnification) and Focus (aggregation) of the dome camera at the same time when the preset bit is set, and only under the specific Zoom, the preset bit can be called quickly and accurately when the preset bit is called, so that the stored data volume is large when the preset bit is set, but the information is less, and when the preset bit is called, the specific Zoom is needed to be accurately positioned.
Disclosure of Invention
The invention aims to provide a presetting bit method and a control system, which solve the problem that a dome camera can accurately preset bits under different zooms in any direction.
The purpose of the invention is realized by the following technical method:
a method of presetting bits, comprising the steps of: a preset bit setting step and a preset bit calling step,
the preset bit setting step comprises the following steps:
(A1) after the system is initialized, the center of the camera image is aligned with a specified target,
(A2) sending the direction information of the dome camera and the Zoom value in a given range to the all-in-one machine, wherein the direction information comprises the horizontal angle of the dome camera and the vertical angle of the dome camera,
(A3) the all-in-one machine utilizes automatic focusing to make the image target clear and obtain the current Focus value under the Zoom value,
(A4) calculating the line number of the current preset point by using the current Zoom value and the Focus value according to a linear interpolation method in a line number database, wherein the line number comprises the Zoom value and the Focus value corresponding to the current direction information,
(A5) the current direction information and the line number are stored,
(A6) repeating the steps from (A1) to (A5) according to the number of preset positions, and storing the direction information corresponding to all preset position setting points and the line numbers obtained by calculation to form a preset position information table;
the preset bit calling step comprises the following steps:
(B1) after the system is initialized, the center of the camera image is aligned with a specified target,
(B2) sending the direction information of the dome camera and any Zoom value to the all-in-one machine,
(B3) inquiring the stored direction information and line number when the preset bit is set, and judging whether the current corresponding direction information exists,
(B4) if (B3) the corresponding direction information can be searched, the current line number is directly searched,
(B5) if the corresponding direction information can not be inquired (B3), searching and calculating the line number by an interpolation calculation method,
(B6) after the line number obtained through (B4) or (B5), calculating a corresponding Focus value according to the line number and the Zoom value in (B1), thereby rapidly obtaining a clear image,
(B7) repeating the steps (B1) to (B6) according to the specified preset bit calling number.
Presetting a bit setting: and setting the current line number according to the direction information of the dome camera and the magnification Zoom in a given range.
Calling a preset bit: and searching the current corresponding line number according to the direction information of the dome camera received by the all-in-one machine and any current magnification factor and a correlation method.
Specifically speaking: when the center of the camera image is aligned with a specified target, direction information including a horizontal angle and a vertical angle of the dome camera and a Zoom value in a given range are acquired from the dome camera according to the dome camera control equipment. And under the Zoom value, the all-in-one machine core makes an image target clear by utilizing automatic focusing and acquires a current Focus value, and then calculates the line number of the current preset point according to the database by utilizing the current Zoom value and the Focus value. The line number at this time is the Zoom value and the Focus value at the current horizontal angle and the vertical angle, and the Focus value corresponding to the Zoom value is different, so the line number information corresponds to a plurality of Zoom values and Focus values corresponding to one-to-one mapping.
The preset position setting needs to store the horizontal angle and the vertical angle of the ball machine corresponding to all the preset position setting points and the line number obtained through calculation.
The preset position calling comprises the steps of setting the horizontal angle, the vertical angle and the Zoom value of the dome camera, solving the current line number according to the relation between the stored dome camera angle information and the line number when the preset position is set, and calculating the corresponding Focus value according to the Zoom value and the searched line number, so that the all-in-one machine can clearly align to the preset position calling point. Therefore, the present invention does not need to store Focus values, and the Zoom value at the time of call can be any Zoom value.
It can be seen from the above that, the line number is obtained by using the curve relationship between the Zoom value and the Focus value, and the traditional way of storing the Zoom value and the Focus value is changed by using the way of storing the line number, so that the clear calling of the image can be realized only by calling the line number and any Zoom value, therefore, the amplification factor when the preset bit is called has no relationship with the amplification factor when the preset bit is set, is not restricted by the amplification factor when the preset bit is set, and can be any amplification factor.
When the preset position is called, all the angle information of the dome camera cannot be found in the storage table, therefore, an interpolation calculation method is needed to search and calculate the line number, the interpolation method is to adopt the line number with the closest horizontal angle and the closest vertical angle of the dome camera in the direction, and the more accurate line number at the moment is calculated by a linear interpolation method.
The Zoom value range in (A2) is
The preset information table comprises line number data, dome camera horizontal angle data and dome camera vertical angle data.
(B5) The formula adopted in the method for searching and calculating the line number by an interpolation calculation is as follows:
wherein,andrespectively horizontal and vertical interpolation coefficients,is based onToAndthe distance between the two or more of the three or more of,is based onToAndthe following are specific examples:
(ii) a (B2) The direction information of the ball machine is as follows: horizontal anglePerpendicular angleAt an angle to the horizontalThe adjacent horizontal angles are arranged in a way that,at an angle to the verticalThe adjacent vertical angles are such that, x,yindicating finding and calculating lines by interpolationThe number of the mobile station is, i,jindicating horizontal anglePerpendicular angleThe number of the lines of the composition, i+1,jindicating horizontal anglePerpendicular angleThe number of the lines of the composition, i,j+1indicating horizontal anglePerpendicular angleThe number of the lines of the composition, i+1,j+1indicating horizontal anglePerpendicular angleThe number of the lines of the composition,
the calculation formula is realized by fixed-point processing in a processor,andare normalized to 128 or 256,all represent horizontal anglesAll represent vertical angles
One direction information composed of one dome machine horizontal angle data and one dome machine vertical angle data corresponds to one line number, and one line number corresponds to a plurality of magnification Zoom values and Focus values under the corresponding magnification Zoom values.
The current Focus value is obtained by calculating the current Focus value according to the direction information and the Zoom value, wherein the calculation method is to make the target image clear under the Zoom value in a given range and record the Focus value at the moment.
A control system generated according to the preset bit method,
comprises ball machine control equipment capable of sending commands to a ball machine,
comprises a command analysis module which can analyze a command header,
comprises a Focus calculation module capable of calculating a Focus value,
comprises a preset position setting line number calculating module capable of calculating the line number,
comprises a preset information storage module capable of storing horizontal angles, vertical angles and line numbers,
comprises a preset bit calling line number module capable of calling line numbers,
comprises a preset bit calling Focus calculating module which can calculate the Focus value according to the line number and the Zoom value,
comprises a positioning module which can carry out positioning according to the Focus value and the Zoom value,
also comprises a motor control module which acts according to the Focus value and the Zoom value,
the format of the commands issued by the ball machine control device is defined as follows:
the method comprises a 2-byte command head, a 2-byte magnification Zoom value, a 2-byte ball machine horizontal angle and a 1-byte vertical angle, wherein the command head determines whether to set a preset bit or call the preset bit.
The command parsing module analyzes whether the preset bit is set or called according to the command header of the preset bit command.
When the command analysis module analyzes that the preset position is set according to a command header, the command is transmitted into a Focus calculation module, the Focus calculation module calculates the current Focus value according to the horizontal angle and the vertical angle in the command and the Zoom value, after the Focus value is obtained, the Focus calculation module sends data [ Zoom, Focus ] to a preset position setting line number calculation module, the preset position setting line number calculation module calculates the current line number in a line number database according to the current data [ Zoom, Focus ] by a linear interpolation method, and finally, the current horizontal angle, the vertical angle and the line number are stored in a preset information storage module;
when the command analysis module analyzes that the command is a preset bit call according to the command header, the command is transmitted to the preset bit call line number module, the preset bit call line number module inquires the line number corresponding to the current horizontal angle and the vertical angle according to the horizontal angle and the vertical angle in the command, the preset bit call Focus calculation module calculates the current Focus value according to the line number and the Zoom value, the motor control module is controlled by the camera positioning module by utilizing the Zoom value and the Focus value,
when the command analysis module analyzes that the command is a preset bit call according to the command header, the command is transmitted to the preset bit call line number module, the preset bit call line number module inquires that the line number corresponding to the current horizontal angle and the vertical angle cannot be obtained according to the horizontal angle and the vertical angle in the command, then the current line number is searched and calculated through an interpolation calculation method, the Focus calculation module is called through the preset bit to calculate the current Focus value according to the line number and the Zoom value, the motor control module is controlled through the camera positioning module by utilizing the Zoom value and the Focus value,
the Zoom value at the time of setting the preset bit must satisfy within a given range, and the Zoom value at the time of calling the preset bit may be any Zoom factor.
The invention adopts the presetting bit method, thereby greatly improving the presetting bit precision and efficiency. Therefore, compared with the method in the background art, the method has the following advantages:
1. larger information quantity can be preset, and preset positions under any multiple of the angle of the ball machine can be adjusted;
2. the Zoom value when the preset bit is called is irrelevant to the Zoom value when the preset bit is set, and can be any Zoom value;
3. the method is convenient for automatic tracking, and automatic tracking can be realized when the Zoom value is given;
4. according to a specific scene, angle preset position setting and tracking are carried out, when the angle changes, the change information of the dome camera is sent to the all-in-one machine by the controller, angle and Zoom value predicted values are given, and the speed and smoothness of preset position tracking can be greatly improved.
Drawings
Fig. 1 is a block diagram of a presetting bit method according to an embodiment of the present invention;
fig. 2 is a specific flowchart of a method for presetting bits according to an embodiment of the present invention;
fig. 3 is a schematic diagram of interpolation search line numbers in a preset bit method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a preset bit system according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples, but the embodiments of the present invention are not limited thereto.
Example 1:
as shown in figure 1 of the drawings, in which,
fig. 1 shows a structural block diagram of an embodiment of the preset bit method of the present invention, which specifically includes preset bit setting and preset bit calling, where the preset bit setting is to determine a current line number according to current direction information and amplification factor of a dome camera and store the direction information and the line number, and the preset bit calling is to search the line number according to the current direction information of the dome camera and determine a current focal length according to the amplification factor sent by the dome camera, so as to perform accurate and rapid preset bit calling.
As shown in figure 2 of the drawings, in which,
a method of presetting bits, comprising the steps of: a preset bit setting step and a preset bit calling step,
as shown in the flow of the area a in fig. 2, the preset bit setting step includes the following steps:
(A1) after the system is initialized, the center of the camera image is aligned with a specified target,
(A2) sending the direction information of the dome camera and the Zoom value in a given range to the all-in-one machine, wherein the direction information comprises the horizontal angle of the dome camera and the vertical angle of the dome camera,
(A3) the all-in-one machine utilizes automatic focusing to make the image target clear and obtain the current Focus value under the Zoom value,
(A4) calculating the line number of the current preset point by using the current Zoom value and the Focus value according to a linear interpolation method in a line number database, wherein the line number comprises the Zoom value and the Focus value corresponding to the current direction information,
(A5) the current direction information and the line number are stored,
(A6) repeating the steps from (A1) to (A5) according to the number of preset positions, and storing the direction information corresponding to all preset position setting points and the line numbers obtained by calculation to form a preset position information table; thus, if N preset points are provided, an information table of the preset points of the element data, which has the length of N and comprises a horizontal angle of the ball machine, a vertical angle of the ball machine and a line number, is stored.
As shown in the flow of the area B in fig. 2, the preset bit calling step includes the following steps:
(B1) after the system is initialized, the center of the camera image is aligned with a specified target,
(B2) sending the direction information of the dome camera and any Zoom value to the all-in-one machine,
(B3) inquiring the stored direction information and line number when the preset bit is set, and judging whether the current corresponding direction information exists,
(B4) if (B3) the corresponding direction information can be searched, the current line number is directly searched,
(B5) if the corresponding direction information can not be inquired (B3), searching and calculating the line number by an interpolation calculation method,
(B6) after the line number obtained through (B4) or (B5), calculating a corresponding Focus value according to the line number and the Zoom value in (B1), thereby rapidly obtaining a clear image,
(B7) repeating the steps (B1) to (B6) according to the specified preset bit calling number.
Presetting a bit setting: and setting the current line number according to the direction information of the dome camera and the magnification Zoom in a given range.
Calling a preset bit: and searching the current corresponding line number according to the direction information of the dome camera received by the all-in-one machine and any current magnification factor and a correlation method.
Specifically speaking: when the center of the camera image is aligned with a specified target, direction information including a horizontal angle and a vertical angle of the dome camera and a Zoom value in a given range are acquired from the dome camera according to the dome camera control equipment. And under the Zoom value, the all-in-one machine core makes an image target clear by utilizing automatic focusing and acquires a current Focus value, and then calculates the line number of the current preset point according to the database by utilizing the current Zoom value and the Focus value. The line number at this time is the Zoom value and the Focus value at the current horizontal angle and the vertical angle, and the Focus value corresponding to the Zoom value is different, so the line number information corresponds to a plurality of Zoom values and Focus values corresponding to one-to-one mapping.
The preset position setting needs to store the horizontal angle and the vertical angle of the ball machine corresponding to all the preset position setting points and the line number obtained through calculation.
The preset position calling comprises the steps of setting the horizontal angle, the vertical angle and the Zoom value of the dome camera, solving the current line number according to the relation between the stored dome camera angle information and the line number when the preset position is set, and calculating the corresponding Focus value according to the Zoom value and the searched line number, so that the all-in-one machine can clearly align to the preset position calling point. Therefore, the present invention does not need to store Focus values, and the Zoom value at the time of call can be any Zoom value.
It can be seen from the above that, the line number is obtained by using the curve relationship between the Zoom value and the Focus value, and the traditional way of storing the Zoom value and the Focus value is changed by using the way of storing the line number, so that the clear calling of the image can be realized only by calling the line number and any Zoom value, therefore, the amplification factor when the preset bit is called has no relationship with the amplification factor when the preset bit is set, is not restricted by the amplification factor when the preset bit is set, and can be any amplification factor.
When the preset position is called, all the angle information of the dome camera cannot be found in the storage table, therefore, an interpolation calculation method is needed to search and calculate the line number, the interpolation method is to adopt the line number with the closest horizontal angle and the closest vertical angle of the dome camera in the direction, and the more accurate line number at the moment is calculated by a linear interpolation method.
The Zoom value range in (A2) is
The preset information table comprises line number data, dome camera horizontal angle data and dome camera vertical angle data.
As shown in fig. 3, (B5) the formula for finding and calculating the line number by interpolation is as follows:
wherein,andrespectively horizontal and vertical interpolation coefficients,is based onToAndthe distance between the two or more of the three or more of,is based onToAndthe following are specific examples:
(ii) a (B2) The direction information of the ball machine is as follows: horizontal anglePerpendicular angleAt an angle to the horizontalThe adjacent horizontal angles are arranged in a way that,at an angle to the verticalThe adjacent vertical angles are such that, x,yindicating that the line number is searched and calculated by interpolation, i,jindicating horizontal anglePerpendicular angleThe number of the lines of the composition, i+1,jindicating horizontal anglePerpendicular angleThe number of the lines of the composition, i,j+1indicating horizontal anglePerpendicular angleThe number of the lines of the composition, i+1,j+1indicating horizontal anglePerpendicular angleThe number of the lines of the composition,
the calculation formula is realized by fixed-point processing in a processor,andare normalized to 128 or 256,all represent horizontal anglesAll represent vertical angles
One direction information composed of one dome machine horizontal angle data and one dome machine vertical angle data corresponds to one line number, and one line number corresponds to a plurality of magnification Zoom values and Focus values under the corresponding magnification Zoom values.
The current Focus value is obtained by calculating the current Focus value according to the direction information and the Zoom value, wherein the calculation method is to make the target image clear under the Zoom value in a given range and record the Focus value at the moment.
Example 2
As shown in fig. 4, the control system generated according to the preset bit method,
comprises ball machine control equipment capable of sending commands to a ball machine,
comprises a command analysis module which can analyze a command header,
comprises a Focus calculation module capable of calculating a Focus value,
comprises a preset position setting line number calculating module capable of calculating the line number,
comprises a preset information storage module capable of storing horizontal angles, vertical angles and line numbers,
comprises a preset bit calling line number module capable of calling line numbers,
comprises a preset bit calling Focus calculating module which can calculate the Focus value according to the line number and the Zoom value,
comprises a positioning module which can carry out positioning according to the Focus value and the Zoom value,
also comprises a motor control module which acts according to the Focus value and the Zoom value,
the format of the commands issued by the ball machine control device is defined as follows:
the method comprises a 2-byte command head, a 2-byte magnification Zoom value, a 2-byte ball machine horizontal angle and a 1-byte vertical angle, wherein the command head determines whether to set a preset bit or call the preset bit. For example: presetting a bit command:
the command parsing module analyzes whether the preset bit is set or called according to the command header of the preset bit command.
When the command analysis module analyzes that the preset position is set according to a command header, the command is transmitted into a Focus calculation module, the Focus calculation module calculates the current Focus value according to the horizontal angle and the vertical angle in the command and the Zoom value, after the Focus value is obtained, the Focus calculation module sends data [ Zoom, Focus ] to a preset position setting line number calculation module, the preset position setting line number calculation module calculates the current line number in a line number database according to the current data [ Zoom, Focus ] by a linear interpolation method, and finally, the current horizontal angle, the vertical angle and the line number are stored in a preset information storage module;
when the command analysis module analyzes that the command is a preset bit call according to the command header, the command is transmitted to the preset bit call line number module, the preset bit call line number module inquires the line number corresponding to the current horizontal angle and the vertical angle according to the horizontal angle and the vertical angle in the command, the preset bit call Focus calculation module calculates the current Focus value according to the line number and the Zoom value, the motor control module is controlled by the camera positioning module by utilizing the Zoom value and the Focus value,
when the command analysis module analyzes that the command is a preset bit call according to the command header, the command is transmitted to the preset bit call line number module, the preset bit call line number module inquires that the line number corresponding to the current horizontal angle and the vertical angle cannot be obtained according to the horizontal angle and the vertical angle in the command, then the current line number is searched and calculated through an interpolation calculation method, the Focus calculation module is called through the preset bit to calculate the current Focus value according to the line number and the Zoom value, the motor control module is controlled through the camera positioning module by utilizing the Zoom value and the Focus value,
the Zoom value at the time of setting the preset bit must satisfy within a given range, and the Zoom value at the time of calling the preset bit may be any Zoom factor.
The invention adopts the presetting bit method, thereby greatly improving the presetting bit precision and efficiency. Therefore, compared with the method in the background art, the method has the following advantages:
1. larger information quantity can be preset, and preset positions under any multiple of the angle of the ball machine can be adjusted;
2. the Zoom value when the preset bit is called is irrelevant to the Zoom value when the preset bit is set, and the Zoom value when the preset bit is called can be any Zoom value;
3. the method is convenient for automatic tracking, and automatic tracking can be realized when the Zoom value is given;
4. according to a specific scene, angle preset position setting and tracking are carried out, when the angle changes, the change information of the dome camera is sent to the all-in-one machine by the controller, angle and Zoom value predicted values are given, and the speed and smoothness of preset position tracking can be greatly improved.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and all simple modifications and equivalent variations of the above embodiment according to the present invention are within the scope of the present invention.

Claims (9)

1. A method of presetting bits, comprising the steps of: a preset bit setting step and a preset bit calling step,
the preset bit setting step comprises the following steps:
(A1) after the system is initialized, the center of the camera image is aligned with a specified target,
(A2) sending the direction information of the dome camera and the Zoom value in a given range to the all-in-one machine, wherein the direction information comprises the horizontal angle of the dome camera and the vertical angle of the dome camera,
(A3) the all-in-one machine utilizes automatic focusing to make the image target clear and obtain the current Focus value under the Zoom value,
(A4) calculating the line number of the current preset point by using the current Zoom value and the Focus value according to a linear interpolation method in a line number database, wherein the line number comprises the Zoom value and the Focus value corresponding to the current direction information,
(A5) the current direction information and the line number are stored,
(A6) repeating the steps from (A1) to (A5) according to the number of preset positions, and storing the direction information corresponding to all preset position setting points and the line numbers obtained by calculation to form a preset position information table;
the preset bit calling step comprises the following steps:
(B1) after the system is initialized, the center of the camera image is aligned with a specified target,
(B2) sending the direction information of the dome camera and any Zoom value to the all-in-one machine,
(B3) inquiring the stored direction information and line number when the preset bit is set, and judging whether the current corresponding direction information exists,
(B4) if (B3) the corresponding direction information can be searched, the current line number is directly searched,
(B5) if the corresponding direction information can not be inquired (B3), searching and calculating the line number by an interpolation calculation method,
(B6) after the line number obtained through (B4) or (B5), calculating a corresponding Focus value according to the line number and the Zoom value in (B1), thereby rapidly obtaining a clear image,
(B7) repeating the steps (B1) to (B6) according to the specified preset bit calling number.
2. The presetting bit method as claimed in claim 1, wherein the presetting bit information table comprises line number data and dome camera horizontal angle data and dome camera vertical angle data.
3. A method for presetting bits as claimed in claim 1, wherein the formula for finding and calculating the line number by interpolation in (B5) is:
wherein,andrespectively horizontal and vertical interpolation coefficients,is based onToAndthe distance between the two or more of the three or more of,is based onToAndthe following are specific examples:
(ii) a (B2) The direction information of the ball machine is as follows: horizontal anglePerpendicular angleAt an angle to the horizontalThe adjacent horizontal angles are arranged in a way that,at an angle to the verticalThe adjacent vertical angles are such that, x,yindicating that the line number is searched and calculated by interpolation, i,jindicating horizontal anglePerpendicular angleThe number of the lines of the composition, i+1,jindicating horizontal anglePerpendicular angleThe number of the lines of the composition, i,j+1indicating horizontal anglePerpendicular angleThe number of the lines of the composition, i+1,j+1indicating horizontal anglePerpendicular angleThe number of the lines of the composition,
the calculation formula is realized by fixed-point processing in a processor,andare normalized to 128 or 256,all represent horizontal anglesAll represent vertical angles
4. The presetting bit method as claimed in claim 1, wherein one direction information composed of one dome horizontal angle data and one dome vertical angle data corresponds to one line number, and one line number corresponds to a plurality of Zoom values and Focus values at the corresponding Zoom values.
5. The presetting bit method as claimed in claim 1, wherein the obtaining of the current Focus value is to calculate the current Focus value according to the direction information and the Zoom value, and the calculation method is to make the target image clear under the Zoom value of the given range, and record the Focus value at this time.
6. The control system of the generation of the preset bit method according to any one of claims 1 to 5, characterized in that:
comprises ball machine control equipment capable of sending commands to a ball machine,
comprises a command analysis module which can analyze a command header,
comprises a Focus calculation module capable of calculating a Focus value,
comprises a preset position setting line number calculating module capable of calculating the line number,
comprises a preset information storage module capable of storing horizontal angles, vertical angles and line numbers,
comprises a preset bit calling line number module capable of calling line numbers,
comprises a preset bit calling Focus calculating module which can calculate the Focus value according to the line number and the Zoom value,
comprises a positioning module which can carry out positioning according to the Focus value and the Zoom value,
the motor control module is also included and is operated according to the Focus value and the Zoom value.
7. The control system of claim 6, wherein:
the format of the commands issued by the ball machine control device is defined as follows:
the method comprises a 2-byte command head, a 2-byte magnification Zoom value, a 2-byte ball machine horizontal angle and a 1-byte vertical angle, wherein the command head determines whether to set a preset bit or call the preset bit.
8. The control system of claim 7, wherein: the command parsing module analyzes whether the preset bit is set or called according to the command header of the preset bit command.
9. The control system of claim 8, wherein:
when the command analysis module analyzes that the preset position is set according to a command header, the command is transmitted into a Focus calculation module, the Focus calculation module calculates the current Focus value according to the horizontal angle and the vertical angle in the command and the Zoom value, after the Focus value is obtained, the Focus calculation module sends data [ Zoom, Focus ] to a preset position setting line number calculation module, the preset position setting line number calculation module calculates the current line number in a line number database according to the current data [ Zoom, Focus ] by a linear interpolation method, and finally, the current horizontal angle, the vertical angle and the line number are stored in a preset information storage module;
when the command analysis module analyzes that the command is a preset bit call according to the command header, the command is transmitted to the preset bit call line number module, the preset bit call line number module inquires the line number corresponding to the current horizontal angle and the vertical angle according to the horizontal angle and the vertical angle in the command, the preset bit call Focus calculation module calculates the current Focus value according to the line number and the Zoom value, the motor control module is controlled by the camera positioning module by utilizing the Zoom value and the Focus value,
when the command analysis module analyzes that the command is a preset bit call according to the command header, the command is transmitted to the preset bit call line number module, the preset bit call line number module inquires that the line number corresponding to the current horizontal angle and the vertical angle cannot be obtained according to the horizontal angle and the vertical angle in the command, then the current line number is searched and calculated through an interpolation calculation method, the Focus calculation module is called through the preset bit to calculate the current Focus value according to the line number and the Zoom value, the motor control module is controlled through the camera positioning module by utilizing the Zoom value and the Focus value,
the Zoom value at the time of setting the preset bit must satisfy within a given range, and the Zoom value at the time of calling the preset bit may be any Zoom factor.
CN201410118637.0A 2014-03-27 2014-03-27 A kind of presetting bit method and control system Active CN103841333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410118637.0A CN103841333B (en) 2014-03-27 2014-03-27 A kind of presetting bit method and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410118637.0A CN103841333B (en) 2014-03-27 2014-03-27 A kind of presetting bit method and control system

Publications (2)

Publication Number Publication Date
CN103841333A CN103841333A (en) 2014-06-04
CN103841333B true CN103841333B (en) 2017-04-05

Family

ID=50804430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410118637.0A Active CN103841333B (en) 2014-03-27 2014-03-27 A kind of presetting bit method and control system

Country Status (1)

Country Link
CN (1) CN103841333B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104919B (en) * 2014-07-24 2017-09-29 山东神戎电子股份有限公司 A kind of coaxial antidote of the camera lens of monitor
CN105763795B (en) * 2016-03-01 2017-11-28 苏州科达科技股份有限公司 A kind of focus method and device, video camera and camera system
CN106303410B (en) * 2016-08-01 2019-01-08 北京工商大学 A kind of rifle ball machine interlock method based on panoramic video and ball machine presetting bit
CN107885011B (en) * 2016-09-29 2021-01-12 厦门星纵智能科技有限公司 Rapid automatic focusing method
EP3422068B1 (en) 2017-06-26 2019-05-01 Axis AB A method of focusing a camera
CN110557550B (en) * 2018-05-31 2020-10-30 杭州海康威视数字技术股份有限公司 Focusing method, device and computer readable storage medium
CN110602376B (en) * 2018-06-12 2021-03-26 杭州海康威视数字技术股份有限公司 Snapshot method and device and camera
CN112243106A (en) * 2019-07-17 2021-01-19 杭州海康威视数字技术股份有限公司 Target monitoring method, device and equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AUPO865797A0 (en) * 1997-08-19 1997-09-11 Australian National University, The Range finding
JP4226231B2 (en) * 2001-06-13 2009-02-18 株式会社日立国際電気 Video signal processing system
JP2010011441A (en) * 2008-05-26 2010-01-14 Sanyo Electric Co Ltd Imaging apparatus and image playback device
CN101794448B (en) * 2010-04-07 2012-07-04 上海交通大学 Full automatic calibration method of master-slave camera chain
CN102984453B (en) * 2012-11-01 2015-10-28 深圳大学 Single camera is utilized to generate the method and system of hemisphere full-view video image in real time
CN103327238B (en) * 2013-05-29 2016-05-11 湖南源信光电科技有限公司 Based on the spatial registration method of panorama clipping the ball all-in-one
CN103501409B (en) * 2013-10-01 2017-01-11 中国人民解放军国防科学技术大学 Ultrahigh resolution panorama speed dome AIO (All-In-One) system

Also Published As

Publication number Publication date
CN103841333A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
CN103841333B (en) A kind of presetting bit method and control system
EP3393120B1 (en) Method for automatic focus and ptz camera
US10334151B2 (en) Phase detection autofocus using subaperture images
CN105763795A (en) Focusing method and apparatus, cameras and camera system
US9955074B2 (en) Target tracking method and system for intelligent tracking high speed dome camera
CN102984530B (en) Image processing system and Atomatic focusing method
US20150334309A1 (en) Handheld electronic apparatus, image capturing apparatus and image capturing method thereof
CN106482640B (en) Device and method for correcting optical axis of integrated machine core
CN103728813B (en) A kind of method of synchronizing focus during zoom
CN108415434B (en) Robot scheduling method
CN104361599B (en) The demarcation of monopod video camera and image pickup method
CN109409147B (en) Bar code recognition method and device
CN103024276A (en) Positioning and focusing method of pan-tilt camera
CN110278382A (en) A kind of focus method, device, electronic equipment and storage medium
CN110913129B (en) Focusing method, device, terminal and storage device based on BP neural network
US20160292873A1 (en) Image capturing apparatus and method for obtaining depth information of field thereof
US10516819B2 (en) Electronic device with multiple lenses and lens switching method
KR101111503B1 (en) Apparatus for controlling Pan/Tilt/Zoom camera in omnidirectional and method for the same
WO2017117749A1 (en) Follow focus system and method based on multiple ranging approaches, and photographing system
CN105072348A (en) Method, device and terminal for quickly focusing on face
CN104469153A (en) Quick focusing method and system
CN104284080B (en) The acquisition methods of image capture unit and depth of view information
CN106991701A (en) A kind of calibration system and method for panorama shooting device parameter
CN104601883B (en) A kind of method and device of image taking
CN102967375A (en) Infrared thermal imaging instrument and method capable of implementing presetting function based on stepping motor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: High tech Zone Chengdu city Sichuan province 610000 Gaopeng Road No. 5

Applicant after: CHENGDU POWERVIEW SCIENCE AND TECHNOLOGY CO., LTD.

Address before: High tech Zone Chengdu city Sichuan province 610000 Gaopeng Road No. 5

Applicant before: CHENGDU POWERVIEW SCIENCE AND TECHNOLOGY CO., LTD.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: CHENGDU POWERVIEW SCIENCE AND TECHNOLOGY LTD. TO: CHENGDU POWERVIEW SCIENCE AND TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 610000 Chengdu high tech Zone, Chengdu, Sichuan (West District), No. 199, No. 2, West District Avenue, No. 1, No. 1

Patentee after: Chengdu Ruitong Video Technology Co., Ltd

Address before: High tech Zone Chengdu city Sichuan province 610000 Gaopeng Road No. 5

Patentee before: CHENGDU POWERVIEW SCIENCE AND TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Preset bit method and control system

Effective date of registration: 20200604

Granted publication date: 20170405

Pledgee: Zhejiang Mintai commercial bank Limited by Share Ltd. Chengdu Gaoxin Branch

Pledgor: Chengdu Ruitong Video Technology Co., Ltd

Registration number: Y2020510000062