A kind of detection device and method of riflescope zero position walking momentum
Technical field
The present invention relates to rifles with taking aim at tool technical field, in particular to a kind of inspection of digital riflescope zero position walking momentum
Survey device and detection method.
Background technique
Rifle with take aim at tool zero position walking momentum i.e. gun after preshot riflescope " crosshair " relative to gun sight
The displacement of the amount of movement of objective lens optical axis, i.e. " crosshair " along X-axis and Y-axis (objective lens optical axis of gun sight is Z axis).Zero-bit is walked about
Amount is an important indicator of riflescope, the size of zero position walking momentum be directly related to riflescope accuracy and can
By property, the accuracy of gun shooting is also directly determined, therefore, riflescope uses preceding its zero-bit of necessary strict inspection in examination
Momentum is walked, the gun sight for being unsatisfactory for this index request is weeded out;In gun sight use process, if the accuracy of fire is bright
Aobvious decline, it is also desirable to which the zero position walking momentum of all gun sights is detected.
The traditional detection mode of riflescope zero position walking momentum is human eye observation's graduated scale reading mode, i.e. inspector exists
Special target with a scale is observed by riflescope and is read before and after firing test, the difference read twice is the gun sight
Zero position walking momentum.Rifle is low with the traditional detection mode detection efficiency for taking aim at tool zero position walking momentum, and thinks that error in reading is larger,
Especially when " crosshair " intersection point is not the scale for being just aligned target, error in reading is significantly increased.
Summary of the invention
The present invention is directed to overcome existing gun sight zero position walking momentum detection efficiency low, the big technological deficiency of error, the present invention
The detection device and detection method of a kind of riflescope zero position walking momentum are provided, using image measurement technology, computer is direct
Provide testing result.
To achieve the above object, the invention adopts the following technical scheme:
On the one hand, the present invention provides a kind of detection device of riflescope zero position walking momentum,
Including pedestal, optical platform, dovetail groove guide rail fixing seat, dovetail groove guide rail, gun sight, parallel light tube, four-dimensional tune
Whole frame, computer;The pedestal has Level tune function;The optical platform is fixed on the base;The dovetail
Guide rail fixing seat is fixed on one end of optical platform upper surface;The dovetail groove guide rail is fixed in dovetail guide fixing seat;
The gun sight is loaded on dovetail groove guide rail;The four-dimensional adjustment frame is fixed on other the one of optical platform upper surface
End;The parallel light tube is fixed on four-dimensional adjustment frame;The gun sight optical axis is parallel with the optical axis of parallel light tube, and takes aim at
The object lens face parallel light tube front end of quasi- mirror, the computer are connect with gun sight, and image pick-up card is installed in computer.
Further, the parallel light tube has the function of to simulate dot.
Further, the four-dimensional adjustment frame can translate and around described in composition in the plane of vertical parallel light pipe optical axis
Two reference axis of plane rotate, realize the upper and lower translation of parallel light tube, left and right translate, deflect, four freedom of upper and lower pitching
The adjustment of degree.
Preferably, the focal length of the parallel light tube is not less than 550mm.
Further, location structure is set on the dovetail groove guide rail.
Yet another aspect, the present invention provide a kind of detection method of riflescope zero position walking momentum, comprising steps of
Gun sight is loaded onto dovetail groove guide rail by S1, and adjusting four-dimensional adjustment frame makes the optical axis and gun sight of parallel light tube
The optical axis of object lens is parallel, connects gun sight and computer with data line;
S2 opens the switch of gun sight and the power switch of parallel light tube, is simulated by computer acquisition parallel light tube
Dot target image, image is adjusted to the center of entire image, focus operations are carried out to the object lens of gun sight, until figure
As clear;
S3, the image of the secondary dot target of computer acquisition one, and extract by image processing techniques the circle of dot image
Heart position coordinates (x0, y0);
S4 removes gun sight, extracts data line and carry out corresponding design experiment or environmental test project, then again will
Gun sight is loaded again onto dovetail groove guide rail, is accessed data line and is acquired the dot target of parallel light tube again by computer
Image and the center location coordinate (x1, y1) for calculating dot image;
S5 calculates the zero position walking momentum of detected gun sight:
The direction x zero position walking momentum is △x=x1-x0,
The direction y zero position walking momentum is △y=y1-y0;
S6, then convert zero position walking momentum to the angular unit " dense bit " generallyd use in riflescope, it is final to calculate
Machine exports result are as follows:
The direction x zero position walking momentum is θx=△x/ f dense bit,
The direction y zero position walking momentum is θy=△y/ f dense bit.
Further, it calculates the dot image center location and sits calibration method are as follows:
S41 extracts the center of circle of dot image: selecting target point in dot image upper ledge, to the pixel ash of dot target image
Degree sorts from large to small;
S42 selects the higher N number of pixel of gray value according to target point size, and according to the pixel coordinate of each target point and
The gray value of each target point position, obtains the weighted average of central coordinate of circle,
(x, y) indicates the pixel coordinate of target point, and f (x, y) is the grayscale information of position (x, y) in image.
The beneficial effects of the present invention are:
The present invention utilizes riflescope zero position walking momentum detection device, simulates infinity target using parallel light tube, leads to
The dot target imaging that digital rifle riflescope simulates parallel light tube is crossed, image pick-up card is by gun sight institute at image
Computer is acquired and be saved in, the centre point coordinate of dot target, dot target circle are extracted with computer image processing technology
Changes in coordinates amount of the heart point after gun preshot is the zero position walking momentum of digital riflescope.
Using computer image processing technology, it will test result and directly exported by computer, eliminate artificial reading and miss
Difference reduces the working strength of operator, improves the detection efficiency of digital riflescope zero position walking momentum, Yi Jijian
Survey precision.
Detailed description of the invention
Fig. 1 is the three-dimensional structure diagram according to the riflescope zero position walking momentum detection device of one embodiment of the invention.
Fig. 2 is the dovetail groove guide rail knot according to the riflescope zero position walking momentum detection device of one embodiment of the invention
Structure schematic diagram.
Fig. 3 is the four-dimensional adjustment frame knot according to the riflescope zero position walking momentum detection device of one embodiment of the invention
Structure schematic diagram.
Fig. 4 is to be simulated according to the parallel light tube of the riflescope zero position walking momentum detection device of one embodiment of the invention
Dot image schematic diagram.
Appended drawing reference:
1, pedestal;2, optical platform;3, dovetail guide fixing seat;4, rifle dovetail groove guide rail;5, gun sight;6, directional light
Pipe;7, four-dimensional adjustment frame;401, dovetail location structure
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing and specific implementation
Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only to explain this hair
It is bright, but not to limit the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not making wound
Every other embodiment obtained under the premise of the property made labour, should fall within the scope of the present invention.
Term " includes " and " having " and their any deformation in description and claims of this specification, meaning
Figure be to cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units
Those of be not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for these processes,
The intrinsic other step or units of method, product or equipment.
Embodiment 1,
Referring initially to Fig. 1, riflescope zero position walking momentum detection device according to an embodiment of the invention is shown
Stereochemical structure,
A kind of detection device of riflescope zero position walking momentum, comprising: led including pedestal 1, optical platform 2, dovetail groove
Rail fixing seat 3, dovetail groove guide rail 4, gun sight 5, parallel light tube 6, four-dimensional adjustment frame 7, the computer for being equipped with image pick-up card;
Pedestal 1 has Level tune function, and the size of the optical platform 2 is long × wide to be not less than 1000mm × 800mm, and the optics is flat
Platform 2 is fixed on pedestal 1, and the four-dimension adjustment frame 7 is adopted with optical platform 2 to be screwed, and the parallel light tube 6 is adjusted with four-dimensional
It adopts and is screwed between whole frame 7, the focal length of the parallel light tube 6 is not less than 550mm, and the rifle is with dovetail groove guide rail 4 and swallow
It is fixed between tail guide rail fixing seat 3 by screw, the dovetail guide fixing seat 3 is fixed as one by screw with optical platform 2
Body, the digital riflescope 5 are loaded on rifle dovetail groove guide rail 4 by quick assembling mechanism used in gun sight 5, the number
5 optical axis of word formula riflescope is parallel with the optical axis of parallel light tube 6 and 5 object lens face parallel light tube of gun sight, 6 front end, the peace
Computer equipped with image pick-up card is placed in 2 outside side of optical platform, leads between digital riflescope 5 and computer
Cross data line connection;
Four-dimensional adjustment frame 7 has two-dimension translational adjustment function in the plane of vertical parallel 6 optical axis of light pipe and flat around two
The rotation for moving axis direction adjusts function;The upper and lower translation of parallel light tube 6, left and right translation, left and right may be implemented partially in four-dimensional adjustment frame 7
The adjustment of four pendulum, upper and lower pitching freedom degrees;
The parallel light tube 6 has the function of simulation dot target;
Location structure 401 is set on the dovetail groove guide rail 4.
Embodiment 2,
A kind of detection method of riflescope zero position walking momentum:
Digital riflescope 5 is loaded onto dovetail groove guide rail 4 by S1, realizes in parallel by adjusting four-dimensional adjustment frame 7
The optical axis of light pipe 6 and the optical axis of telescope objective 5 are substantially parallel, connect gun sight 5 and computer with data line;
S2 opens the switch of gun sight 5 and the power switch of parallel light tube 6, passes through 6 moulds of computer acquisition parallel light tube
Quasi- dot target image adjusts four-dimensional adjustment frame 7 again, image is adjusted to the approximate centre position of entire image, to number
The object lens of formula riflescope 5 carry out focus operations, until image clearly, hereafter, it is necessary to assure parallel light tube 6, four-dimensional adjustment
The current state of frame 7, dovetail groove guide rail fixing seat 4 and dovetail groove guide rail 4 is motionless;
S3 by the image of the secondary dot target of computer acquisition one, and extracts dot target by image processing techniques
The center location coordinate (x0, y0) of image;
S4 removes gun sight 5, extracts data line and carry out corresponding design experiment or environmental test project, carried out
After correlation test, then gun sight 5 is loaded again onto dovetail groove guide rail 4, access data line is simultaneously acquired by computer again
The dot target image of parallel light tube 6 and the center location coordinate (x1, y1) for calculating dot target image;
S5 calculates the zero position walking momentum for detecting digital riflescope are as follows: the direction x zero position walking momentum is △x=x1-
x0, the direction y zero position walking momentum is △y=y1-y0;
S6, then convert zero position walking momentum to the angular unit " dense bit " generallyd use in riflescope, it is final to calculate
Machine exports result are as follows: the direction x zero position walking momentum is θx=△x/ f dense bit, the direction y zero position walking momentum are θy=△y/ f dense bit.
The center of circle of the dot target image of computer acquisition is extracted by the way of artificially participating in, on the image frame choosing circle
Point target (guarantees that target is selected by whole frames), carries out gray scale to the pixel of frame choosing and sorts from large to small, according to target sizes, selection
The higher N number of pixel (x, y, f (x, y)) of gray value is put into array, case deletion is carried out to this N number of pixel, then by following
Formula carries out x, and the central coordinate of circle in the direction y calculates:
In formula, (x, y) indicates the pixel coordinate for belonging to target in image, and f (x, y) is the gray scale of position (x, y) in image
Information.
The above described specific embodiments of the present invention are not intended to limit the scope of the present invention..Any basis
Any other various changes and modifications made by technical concept of the invention should be included in the guarantor of the claims in the present invention
It protects in range.