CN103389121B - Based on angle detection device and the method for machine vision - Google Patents

Based on angle detection device and the method for machine vision Download PDF

Info

Publication number
CN103389121B
CN103389121B CN201310366941.2A CN201310366941A CN103389121B CN 103389121 B CN103389121 B CN 103389121B CN 201310366941 A CN201310366941 A CN 201310366941A CN 103389121 B CN103389121 B CN 103389121B
Authority
CN
China
Prior art keywords
image
encoding strip
mark
rotating disk
equation
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
CN201310366941.2A
Other languages
Chinese (zh)
Other versions
CN103389121A (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 SWAYTECH Co Ltd
Original Assignee
CHENGDU SWAYTECH 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 SWAYTECH Co Ltd filed Critical CHENGDU SWAYTECH Co Ltd
Priority to CN201310366941.2A priority Critical patent/CN103389121B/en
Publication of CN103389121A publication Critical patent/CN103389121A/en
Application granted granted Critical
Publication of CN103389121B publication Critical patent/CN103389121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses a kind of angle detection device based on machine vision, comprise housing and the rotating disk being arranged at enclosure interior, the center of rotating disk is provided with rotating shaft, rotating disk is provided with identical but at least two that the vary in size marks of shape, and described at least two are designated circle that center coincides, parallelogram, equilateral triangle or positive even numbers limit shape; Be provided with at least two encoding strip marks between mark, and every bar encoding strip target center line crosses center, the corresponding coding of every bar encoding strip mark, and the coding difference that every two encoding strip marks are corresponding; Also comprise the image collecting device for absorbing rotating disk image and lighting source.The present invention additionally provides a kind of angle detecting method based on machine vision simultaneously.Angle detection device structure of the present invention is simple, and contamination resistance is strong, and the impact resistance of rotating disk is stronger.Angle detecting method of the present invention, for the metrical error that pollutant causes, reject by image processing techniques identification, accuracy of detection is high.

Description

Based on angle detection device and the method for machine vision
Technical field
The present invention relates to encoder techniques field, particularly a kind of angle detection device based on machine vision and method.
Background technology
Rotary encoder is used to measure the device of rotating speed, converts the mechanical quantity such as the angular displacement of output shaft, angular velocity to corresponding electric pulse and with digital output.Rotary encoder can be divided into optical grating principle scrambler and magnetic magnetic grid principle scrambler.Grating principle rotary encoder comprises the photoelectric code disk that a center is provided with rotating shaft, photoelectric code disk there is the groove that annular is logical, dark, when photoelectric code disk rotates a pitch, under light-emitting component irradiates, light activated element obtains A phase, the B phase pulse signal with 90 degree of phase differential, A phase, B phase pulse signal turn after voltage transformation through frequency, obtain the voltage signal proportional with rotating shaft rotating speed, velocity amplitude and displacement can be recorded.The rotary encoder measuring accuracy of grating principle is high, but shortcoming to be contamination resistance poor.Magnetic grid rotary encoder utilizes the magnetic action of magnetic grid and magnetic head, with circle-shaped alternately magnetic on this magnetic rubber ring, produces S pole and N pole, adopts mistor or hall effect sensor as sensitive element, forms spike train by magnetic force, produce signal.The rotary encoder of magnetic grid principle has stronger antipollution, impact resistance, but shortcoming to be measuring accuracy not high.
Summary of the invention
The object of the invention is to overcome the deficiency that raster rotary coder contamination resistance is poor, magnetic grid rotary encoder measuring accuracy is not high existing in prior art, a kind of angle detection device based on machine vision is provided, a kind of angle detecting method based on machine vision is provided simultaneously, while realization accurately detects, improves contamination resistance, impact resistance.
In order to realize foregoing invention object, the invention provides following technical scheme:
A kind of angle detection device based on machine vision, comprise housing and the rotating disk being arranged at enclosure interior, the center of described rotating disk is provided with rotating shaft, rotating disk is provided with identical but at least two that the vary in size marks of shape, and described at least two are designated circle that center coincides, parallelogram, equilateral triangle or positive even numbers limit shape; Be provided with at least two encoding strip marks between mark, and every bar encoding strip target center line crosses center, the corresponding coding of every bar encoding strip mark, and the coding difference that every two encoding strip marks are corresponding; Also comprise the image collecting device for absorbing rotating disk image and lighting source, described lighting source and digital image acquisition device are fixed by housing.
So-called machine vision, replaces human eye measure and judge with machine exactly.Vision Builder for Automated Inspection refers to by machine vision product (i.e. image-pickup device, point CMOS and CCD two kinds) target will be ingested convert picture signal to, send special image processing system to, according to pixel distribution and the information such as brightness, color, be transformed into digitized signal; Picture system carries out various computing to extract clarification of objective to these signals, and then controls on-the-spot device action according to the result differentiated.
Further, described in be designated two, be respectively the first mark and second mark.Preferably, described first mark and the second mark are circle.
Apply the method that the above-mentioned angle detection device based on machine vision carries out angle detection, comprise the following steps:
(1) uncalibrated image harvester inner parameter matrix K;
(2) utilize image collecting device to absorb rotating disk image, from rotating disk image, be partitioned into the identification images of at least two marks, ask at least two identification image equations, and the image coordinate at the center of knowing according at least two identification image Solving Equations label takings;
(3) at moment t1, picked-up encoding strip logo image, resolves the first encoding strip target coding, and extracts the first encoding strip target first boundary image equation;
(4) at moment t2, picked-up encoding strip logo image, resolves the second encoding strip target coding, and extracts the second encoding strip target the second boundary image equation;
(5) ask for the line equation that goes out of mark place plane, and ask for the vanishing point coordinate of the first place, border rectilinear direction on the line that goes out and the vanishing point coordinate of the second boundary place rectilinear direction on the line that goes out;
(6) according to two intersecting point coordinates and parameter matrix K, ask for t1 moment first encoding strip mark and t2 moment second encoding strip target unit direction vector respectively, ask for the angle of rotating in t1 to the t2 time period according to the first encoding strip mark and the second encoding strip target unit direction vector.
Further, described in step (2), at least two marks are circle.
Further, utilize image collecting device to absorb rotating disk image described in step (2), from rotating disk image, be partitioned into the identification image of at least two marks, the method asking at least two identification image equations is:
If g1 is the image that a circular curve obtains through image acquisition device, extract the border of this circular curve, and on border, choose arbitrarily at least 5 points, seek out at least 5 corresponding image coordinate of point, be expressed as (u tv t) t=1,2,3..., then the equation general formula of g1 can be described as: g ( u , v ) = u v 1 T · M · u v 1 = 0 , M = A 0.5 C 0.5 D 0.5 C B 0.5 E 0.5 D 0.5 E F , Get A=1, by least 5 corresponding image coordinate (u of point tv t) substitute in above formula, have u i v i 1 T · 1 0.5 c 0.5 d 0.5 c b 0.5 e 0.5 d 0.5 e f · u i v i 1 = 0 , Wherein, b=B/A, c=C/A, d=D/A, e=E/A, f=F/A; Solve b, c, d, e, f, then identification image equation is: G i(u, v)=A iu 2+ B iv 2+ C iuv+D iu+E iv+F i=0 wherein, A i=1.
Further, described in step (2) according to the method for the image coordinate at the center of at least two identification image Solving Equations label takings knowledges be:
If the image coordinate at center is (u ov o), the image coordinate at circular image equation and its center meets relation a ′ b ′ c ′ = A 0.5 C 0.5 D 0.5 C B 0.5 E 0.5 D 0.5 E F · u 0 v 0 1 , Wherein, a', b', c' be respectively circle the coefficient of the line equation that goes out in the plane; According to a ′ b ′ c ′ = A 1 0.5 C 1 0.5 D 1 0.5 C 1 B 1 0.5 E 1 0.5 D 1 0.5 E 1 F 1 · u 0 v 0 1 = A 2 0.5 C 2 0.5 D 2 0.5 C 2 B 2 0.5 E 2 0.5 D 2 0.5 E 2 F 2 · u 0 v 0 1 Image coordinate (the u at center can be drawn ov o); Wherein, A 1, B 1, C 1, D 1, E 1, F 1for the coefficient of one of them identification image equation, A 2, B 2, C 2, D 2, E 2, F 2for another knows the coefficient of image equation.
Further, the method asking for the line equation that goes out of mark place plane of described step (5) is:
By center image coordinate (u ov o), at least two identification image equations, according to equation a ′ b ′ c ′ = A 0.5 C 0.5 D 0.5 C B 0.5 E 0.5 D 0.5 E F · u 0 v 0 1 Solve the value of coefficient a', b', the c' of the line equation that goes out, then the line equation that goes out identifying place plane is: a'u+b'v+c'=0.
Further, according to two intersecting point coordinates and parameter matrix K described in step (6), ask for t1 moment first encoding strip mark and t2 moment second encoding strip target unit direction vector respectively, its method is:
If the unit direction vector of place, encoding strip mark border straight line is then it can by the vanishing point coordinate (u that this side up j, v j) substitute into ρ j · v x j v y j v z j = K - 1 u j v j 1 Draw, wherein, ρ iit is any non-zero constant; Use vectorial method for normalizing, and be marked on the appearance position in binary encoding bar logo image according to encoding strip, the coordinate of unit direction vector can be determined; Obtain the first encoding strip mark and the second encoding strip target unit direction vector thus respectively.
Further, the angle of rotating in t1 to the t2 time period is asked for according to the first encoding strip mark and the second encoding strip target unit direction vector described in step (6), its method is: α=β ± θ, wherein, α is the angle of rotating in t1 to the t2 time period, β is the angle between t1 moment first encoding strip mark and t2 moment second encoding strip target unit direction vector, and θ is the angle between the first encoding strip mark and the second encoding strip mark.
Compared with prior art, beneficial effect of the present invention:
The present invention is based on the angle detection device of machine vision, rotational angle, velocity of rotation, the increment type of rotation acceleration or absolute type can be realized and measure.Due to contactless between image collecting device and rotating disk, angle detection device contamination resistance of the present invention is strong.Because rotating disk does not need to possess transmittancy, therefore rotating disk can adopt the stiff materials such as alloy to make, and impact resistance is stronger.
The angle detection device structure that the present invention is based on machine vision is simple, and the scale (encoding strip mark) of rotating disk is drawn simpler compared to the making of optical grating, and cost is lower.
The present invention is based on the angle detecting method of machine vision, use image interior in a big way on rotating disk to originate as measurement data, coordinate image processing techniques, reduce the impact that image local distortion produces whole detection precision; And if pollutant identifies with rotating disk and differs greatly in visual characteristic, reject by image processing techniques identification, can not have an impact to final measurement, avoid the problem that accuracy of detection that pollutant causes is lower, improve accuracy of detection, measure relative error by experiment lower than 0.5%.
Angle detecting method of the present invention uses flexibly, and the device realizing angle detection can independently make, and also can draw encoding strip mark on existing, then combining image harvester can realize angle detection.
Accompanying drawing illustrates:
Fig. 1 is the angle detection device structural representation that the present invention is based on machine vision.
Fig. 2 is encoding strip target structural representation.
Fig. 3 is the process flow diagram of the angle detecting method that the present invention is based on machine vision.
Mark in figure: 1-rotating shaft, 2-encoding strip mark, 3-cylindrical identifies, and 4-inner circle identifies, 5-image collecting device, 6-rotating disk, 7-housing, 8-lighting source, 201-bits of coded.
Embodiment
Below in conjunction with test example and embodiment, the present invention is described in further detail.But this should be interpreted as that the scope of the above-mentioned theme of the present invention is only limitted to following embodiment, all technology realized based on content of the present invention all belong to scope of the present invention.
With reference to figure 1, angle detection device based on machine vision provided by the invention, comprise the rotating disk 6 that a center is provided with rotating shaft 1, rotating disk 6 is provided with concentric but the cylindrical of different-diameter mark 3 and inner circle mark 4, the diameter of cylindrical mark 3 is greater than inner circle mark 4, be provided with at least two encoding strip marks 2 between cylindrical mark 3 and inner circle mark 4, and the center line of every bar encoding strip mark 2 crosses the center of circle, namely the center of circle of rotating disk 6 is on the center line of encoding strip mark 2.When encoding strip mark 2 is two or more, the distance (i.e. angle) often between adjacent two encoding strip marks 2 can be arranged arbitrarily, but angle between adjacent two encoding strip marks 2 is known.With reference to figure 2, encoding strip mark 2 is provided with several bits of coded 201, and bits of coded represents different encoded radios after being colored as different colors.The bits of coded number that all encoding strips on same rotating disk are put on is identical, and coded system is identical, namely carries out coding/decoding (namely according to equidirectional, reading the encoded radio that encoding strip puts on each bits of coded successively) according to equidirectional, obtains coding.If adopt m kind Color pair bits of coded to carry out painted, an encoding strip is put on and is arranged n bits of coded, so can obtain m nthe encoding strip mark of bar different coding, although the encoding strip mark quantity that rotating disk is arranged can be arranged arbitrarily, the every bar encoding strip target coding on same rotating disk must be different.Because the encoding strip mark on rotating disk is without the need to arranging too much (at least one can realize), for the ease of coding/decoding, preferably adopt two kinds of colors presentation code value 1 and encoded radio 0 respectively, every bar encoding strip mark arranges 4-6 bits of coded.In the present embodiment, black is adopted to represent encoded radio 0, white presentation code value 1, every bar encoding strip mark arranges 6 bits of coded, as shown in Figure 2, this encoding strip target is encoded to 011011 (according to reading successively from top to bottom, namely reading successively from closing on center of circle end to away from center of circle end).Encoding strip is put on and is arranged several bits of coded, and bits of coded is colored as different colours to represent different coding value, such object makes the corresponding coding of an encoding strip mark, certain, other embodiments (such as, directly putting on label coding at encoding strip) can be taked to realize the corresponding coding of an encoding strip mark.Rotating disk 6 is arranged at the inside of housing 7, and one end of rotating shaft 1 passes housing 7, so that be connected with engine.The angle detection device that the present invention is based on machine vision also comprises the lighting source 8 and digital image acquisition device 5 that are arranged at enclosure interior, lighting source 8 and digital image acquisition device 5 are fixed by housing 7, the installation site of lighting source 8 and digital image acquisition device 5 is not particularly limited, but must meet and can obtain image clearly, and at least comprise in the image obtained inner circle mark 4, cylindrical mark 3 part or all of, and at least one complete encoding strip mark 2.Be configured with data processing unit in digital image acquisition device 5, digital image acquisition device 5 directly can adopt digital camera.
It should be noted that, the shape of encoding strip mark 2 can be triangle, the arbitrary shape such as trapezoidal, is not limited only to the rectangle shown in Fig. 2.The cylindrical mark 3 that rotating disk 6 is arranged and inner circle mark 4 are not limited only to two, can arrange multiple concentric circles mark, but be at least two; Cylindrical mark 3 and inner circle mark 4 (concentric circles marks) are also not limited only to circle, cylindrical mark 3 and inner circle mark 4 also can be parallelogram, equilateral triangle and any positive even numbers limit shape, but the center of cylindrical mark 3 and inner circle mark 4 coincides, and size is unequal.
With reference to figure 3, utilize the above-mentioned angle detection device based on machine vision to carry out the method for angle detection, comprise the following steps:
(1) demarcate digital camera (i.e. digital image acquisition device) inner parameter matrix K, and be kept in its supporting data processing unit.The scaling method of digital camera inner parameter matrix K belongs to prior art, does not do too much elaboration herein.For the demarcation of digital camera inner parameter matrix K, again digital camera is installed in the housing of angle detection device after can first demarcating K; Also first digital camera can be installed in the housing of angle detection device, and then adopt self calibration algorithm automatically to complete the demarcation of parameter matrix K, but need increase and calibrate mark accordingly.
(2) digital camera is utilized to absorb rotating disk image (comprising inner circle identification image and cylindrical identification image in rotating disk image), inner circle identification image and cylindrical identification image is partitioned into from rotating disk image, and ask for inner circle identification image equation and cylindrical identification image equation, then ask for its center of circle image coordinate according to inner circle identification image equation and cylindrical identification image equation.
(2-1) inner circle identification image equation and cylindrical identification image equation is asked for.
If g1 is the image that a circular curve collects through digital camera, extract the border of this circular curve, and on border, choose arbitrarily at least 5 points, seek out at least 5 corresponding image coordinate of point, be expressed as (u tv t) t=1,2,3..., then the equation general formula of g1 can be described by following equation:
g ( u , v ) = u v 1 T · M · u v 1 = 0 , M = A 0.5 C 0.5 D 0.5 C B 0.5 E 0.5 D 0.5 E F
Because the element in Metzler matrix is not 0 entirely, therefore by Metzler matrix divided by A, then Metzler matrix can be expressed as:
M = 1 0.5 c 0.5 d 0.5 c b 0.5 e 0.5 d 0.5 e f
Wherein, b=B/A, c=C/A, d=D/A, e=E/A, f=F/A.From above formula, the independent variable in Metzler matrix becomes 5, and (that is, b, c, d, e, f), therefore the seat of at least 5 of known g1 points
Mark (u tv t) substitute into g ( u , v ) = u v 1 T · M · u v 1 = 0 , At least 5 prescription journeys can be obtained:
u i v i 1 T · 1 0.5 c 0.5 d 0.5 c b 0.5 e 0.5 d 0.5 e f · u i v i 1 = 0
By above formula solve 5 variablees (b, c, d, e, f) after, uniquely can determine Metzler matrix.If equation quantity is more than 5, then least square method is utilized to ask for the optimum solution of Metzler matrix.
According to the method described above, solve concentric circles identification image equation (in the present embodiment, being namely obtain cylindrical identification image equation and inner circle identification image equation) successively, be designated as:
G i(u,v)=A iu 2+B iv 2+C iuv+D iu+E iv+F i=0
Wherein, A i=1.
(2-2) center of circle image coordinate is calculated.
If the image coordinate in the center of circle is (u ov o), the image coordinate in circular image equation and its center of circle meets following relation:
a ′ b ′ c ′ = A 0.5 C 0.5 D 0.5 C B 0.5 E 0.5 D 0.5 E F · u 0 v 0 1 ,
Wherein, a', b', c' be respectively circle the coefficient of the line equation that goes out in the plane.Owing to having solved cylindrical identification image equation and inner circle identification image equation above, therefore lower equation can be able to:
a ′ b ′ c ′ = A 1 0.5 C 1 0.5 D 1 0.5 C 1 B 1 0.5 E 1 0.5 D 1 0.5 E 1 F 1 · u 0 v 0 1 = A 2 0.5 C 2 0.5 D 2 0.5 C 2 B 2 0.5 E 2 0.5 D 2 0.5 E 2 F 2 · u 0 v 0 1
Can uniquely solve central coordinate of circle (u thus ov o).When rotating disk being provided with the concentric circles mark more than two, after solving all concentric circles identification image equations, then the optimum solution of central coordinate of circle can be solved by least square method.
(3) circular image equation or inner circle mark circular image equation is identified, according to equation by center of circle image coordinate, cylindrical a ′ b ′ c ′ = A 0.5 C 0.5 D 0.5 C B 0.5 E 0.5 D 0.5 E F · u 0 v 0 1 (line that goes out is defined as: in projective mapping to solve the line that goes out, in plane, all infinity points are positioned on straight line, this straight line is " go out line " or " blanking line ", English is: vanishline) value of coefficient a', b', c' of equation, then the equation of the line L that goes out of plane of rotor disc (i.e. the plane at cylindrical mark and inner circle mark place) is asked for, the line equation that goes out is: a'u+b'v+c'=0, and is saved in the supporting data processing unit of digital camera.
It should be noted that, if for changing digital camera and/or rotating disk in measuring process, then need to re-execute step (1) to (3), again ask for center of circle image coordinate, go out line equation etc.
(4) when time t1, digital camera gathers rotating disk image (comprising at least one complete mark of encoding strip clearly in rotating disk image), identifies, is partitioned into clear, the most complete encoding strip logo image.The implication of the encoding strip logo image of most complete display is herein, adopts the sharpness of out of focus decision algorithm to all rotating disk images obtained to calculate, chooses the encoding strip logo image that sharpness is maximum.After digital camera installs, its most blur-free imaging district determines thereupon, and therefore, the encoding strip logo image of most complete display preferentially obtains from most blur-free imaging district.
(5) decoding and coding bar mark C1, namely on discrimination encoding strip mark C1, the encoded radio of each bits of coded is 1 or is 0, and composition coding d1, is saved in data processing unit.
(6) adopt Algorithm of fitting a straight line, the image equation on a matching partition encoding bar mark C1 left side (or right) border, and solve the image equation on this left side (or right) border and the intersection point P1 (u of the line L that goes out 1v 1).It should be noted that, intersection point P1 (u herein 1v 1) actual be an encoding strip mark C1 left side on the line that goes out (or right) border institute vanishing point in the straight direction, in actual treatment, the acquisition of vanishing point coordinate is exactly ask for absorbing boundary equation and the intersecting point coordinate of the line that goes out.
(7) at time t2, repeat step (4) and (5), extract the coding d2 of encoding strip mark C2, and obtain the image equation on a left encoding strip mark C2 left side (or right) border and the intersection point P2 (u of the line L that goes out 2v 2).Intersection point P2 (u herein 2v 2) actual be an encoding strip mark C2 left side on the line that goes out (or right) border vanishing point in the straight direction.
It should be noted that, if the angle that rotating disk rotates within t1 to the t2 time is, the angle between the encoding strip mark C1 in t1 moment and the encoding strip mark C2 position in t2 moment and the integral multiple sum of 360 °, so just cannot detect the velocity of rotation of rotating disk.Therefore, by test of many times verification mode, reduce the mistiming between t1 and t2 gradually, two different coding bar target images that final acquisition is taken in a rotation period, that is, the angle that rotating disk rotates within t1 to the t2 time is the angle between the encoding strip mark C1 in t1 moment and the encoding strip mark C2 position in t2 moment.If encoding strip mark C1 and C2 photographed in t1 and the t2 moment is one and same coding bar mark, so the angle of encoding strip mark C1 (or C2) respectively between t1 moment and t2 moment position is the angle that rotating disk rotates within t1 to the t2 time.In order to measure the rotational angle with the rotating disk of higher rotation speed more accurately, get the image of the encoding strip mark C2 different from C1 in the t2 moment, the encoding strip mark namely on rotating disk should be set at least two.
(8) ask for the angle between t1 moment encoding strip mark C1 and t2 moment encoding strip mark C2, and ask for velocity of rotation according to this angle.This step comprises:
(8-1) by intersection point P1, P2, camera internal parameter K and twice encoding strip target image information, the direction vector that encoding strip mark C1 and C2 points to respectively on t1, t2 time point is solved.
If the unit direction vector of place, encoding strip mark border straight line is then it can by the vanishing point coordinate (u that this side up j, v j) substitute into following formula acquisition:
ρ j · v x j v y j v z j = K - 1 u j v j 1
Wherein, when asking for the unit direction vector v1 on a left side (or right) border of encoding strip mark C1, j=1, when asking for the unit direction vector v2 on a left side (or right) border of encoding strip mark C2, j=2, ρ ibe any non-zero constant, use vectorial method for normalizing, may separate for two groups that unit direction vector can be obtained.And the position of digital camera is once be provided with, the corresponding relation of image-region and direction vector can be determined, that is, according to the appearance position of encoding strip logo image on general image, can determine that it is truly separated.Unit direction vector v1, the v2 on a left side (or right) border of encoding strip mark C1, C2 can be obtained thus respectively, unit direction vector v1, the v2 on a left side of encoding strip mark C1, C2 (or right) border are the direction vector that encoding strip mark C1 and C2 points to respectively on t1, t2 time point, the direction vector that encoding strip mark C1 and C2 points to respectively on t1, t2 time point gets final product the current location of presentation code bar mark C1 and C2 respectively on t1, t2 time point, and the angle namely between v1, v2 is the angle between the encoding strip mark C1 in t1 moment and the encoding strip mark C2 in t2 moment.
(8-2) according to the angle between the t1 moment encoding strip mark C1 asked for and t2 moment encoding strip mark C2, and the angle that rotating disk is fixed between encoding strip mark C1 and C2, ask for the angle that rotating disk rotates within t1 to the t2 time: α=β ± θ, wherein, α is the angle of rotating in t1 to the t2 time period, β is the angle between t1 moment first encoding strip mark and t2 moment second encoding strip target unit direction vector, and θ is the angle between the first encoding strip mark and the second encoding strip mark.
If definition rotate counterclockwise as positive dirction, and reality for rotating counterclockwise time, so within t1 to the t2 time, the angle of dial rotation is α=β+θ.
If definition rotates counterclockwise as positive dirction, when reality is for rotating clockwise, so within t1 to the t2 time, the angle of dial rotation is α=β-θ.
Introduce time interval parameter, velocity of rotation, rotation acceleration parameter can be obtained.
All features disclosed in this instructions, or the step in disclosed all methods or process, except mutually exclusive feature and/or step, all can combine by any way.
Arbitrary feature disclosed in this instructions (comprising any accessory claim, summary and accompanying drawing), unless specifically stated otherwise, all can be replaced by other equivalences or the alternative features with similar object.That is, unless specifically stated otherwise, each feature is an example in a series of equivalence or similar characteristics.

Claims (4)

1. the angle detection device based on machine vision, it is characterized in that, comprise housing and the rotating disk being arranged at enclosure interior, the center of described rotating disk is provided with rotating shaft, rotating disk is provided with identical but at least two that the vary in size marks of shape, and described at least two are designated circle that center coincides, parallelogram, equilateral triangle or positive even numbers limit shape; Be provided with at least two encoding strip marks between mark, and every bar encoding strip target center line crosses center, the corresponding coding of every bar encoding strip mark, and the coding difference that every two encoding strip marks are corresponding; Also comprise the image collecting device for absorbing rotating disk image and lighting source, described lighting source and digital image acquisition device are fixed by housing;
Angle between adjacent described two coding bar codes is known, the installation site of described lighting source and described digital image acquisition device must meet can obtain image clearly, described image clearly comprise mark in circle, the outer mark of circle part or all of, at least two complete encoding strip marks.
2. the angle detection device based on machine vision according to claim 1, is characterized in that, described in be designated two, be respectively the first mark and second mark.
3. the angle detection device based on machine vision according to claim 2, is characterized in that, described first mark and the second mark are circle.
4. application rights requires that the angle detection device based on machine vision described in 1 carries out the method for angle detection, it is characterized in that, comprises the following steps:
(1) uncalibrated image harvester inner parameter matrix K;
(2) utilize image collecting device to absorb rotating disk image, from rotating disk image, be partitioned into the identification images of at least two marks, ask at least two identification image equations, and the image coordinate at the center of knowing according at least two identification image Solving Equations label takings;
(3) at moment t1, picked-up encoding strip logo image, resolves the first encoding strip target coding, and extracts the first encoding strip target first boundary image equation;
(4) at moment t2, picked-up encoding strip logo image, resolves the second encoding strip target coding, and extracts the second encoding strip target the second boundary image equation;
(5) ask for the line equation that goes out of mark place plane, and ask for the vanishing point coordinate of the first place, border rectilinear direction on the line that goes out and the vanishing point coordinate of the second boundary place rectilinear direction on the line that goes out;
(6) according to two intersecting point coordinates and parameter matrix K, ask for t1 moment first encoding strip mark and t2 moment second encoding strip target unit direction vector respectively, ask for the angle of rotating in t1 to the t2 time period according to the first encoding strip mark and the second encoding strip target unit direction vector; Described in step (2), at least two marks are circle;
Utilize image collecting device to absorb rotating disk image described in step (2), from rotating disk image, be partitioned into the identification image of at least two marks, the method asking at least two identification image equations is:
If g1 is the image that a circular curve obtains through image acquisition device, extract the border of this circular curve, and on border, choose arbitrarily at least 5 points, seek out at least 5 corresponding image coordinate of point, be expressed as then the equation general formula of g1 can be described as: g ( u , v ) = u v 1 T · M · u v 1 = 0 , M = A 0.5 C 0.5 D 0.5 C B 0.5 E 0.5 D 0.5 E F , Get A=1, by least 5 corresponding image coordinate (u of point tv t) substitute in above formula, have
u i v i 1 T · 1 0.5 c 0.5 d 0.5 c b 0.5 e 0.5 d 0.5 e f · u i v i 1 = 0 , Wherein, b=B/A, c=C/A, d=D/A, e=E/A, f=F/A; Solve b, c, d, e, f, then identification image equation is:
G i(u, v)=A iu 2+ B iv 2+ C iuv+D iu+E iv+F i=0 wherein, A i=1;
Described in step (2) according to the method for the image coordinate at the center of at least two identification image Solving Equations label takings knowledges be:
If the image coordinate at center is (u ov o), the image coordinate at circular image equation and its center meets relation a ′ b ′ c ′ = A 0.5 C 0.5 D 0.5 C B 0.5 E 0.5 D 0.5 E F · u 0 v 0 1 , Wherein, a', b', c' be respectively circle the coefficient of the line equation that goes out in the plane; According to a ′ b ′ c ′ = A 1 0.5 C 1 0.5 D 1 0.5 C 1 B 1 0.5 E 1 0.5 D 1 0.5 E 1 F 1 · u 0 v 0 1 = A 2 0.5 C 2 0.5 D 2 0.5 C 2 B 2 0.5 E 2 0.5 D 2 0.5 E 2 F 2 · u 0 v 0 1 Image coordinate (the u at center can be drawn ov o); Wherein, A 1, B 1, C 1, D 1, E 1, F 1for the coefficient of one of them identification image equation, A 2, B 2, C 2, D 2, E 2, F 2for another knows the coefficient of image equation;
The method asking for the line equation that goes out of mark place plane of described step (5) is:
By center image coordinate (u ov o), at least two identification image equations, according to equation a ′ b ′ c ′ = A 0.5 C 0.5 D 0.5 C B 0.5 E 0.5 D 0.5 E F · u 0 v 0 1 Solve the value of coefficient a', b', the c' of the line equation that goes out, then the line equation that goes out identifying place plane is: a ' u+b ' v+c '=0;
According to two intersecting point coordinates and parameter matrix K described in step (6), ask for t1 moment first encoding strip mark and t2 moment second encoding strip target unit direction vector respectively, its method is:
If the unit direction vector of place, encoding strip mark border straight line is then it can by the vanishing point coordinate (u that this side up j, v j) substitute into ρ j · v x j v y j v z j = K - 1 u j v j 1 Draw, wherein, ρ iit is any non-zero constant; Use vectorial method for normalizing, and be marked on the appearance position in binary encoding bar logo image according to encoding strip, the coordinate of unit direction vector can be determined; Obtain the first encoding strip mark and the second encoding strip target unit direction vector thus respectively;
The angle of rotating in t1 to the t2 time period is asked for according to the first encoding strip mark and the second encoding strip target unit direction vector described in step (6), its method is: α=β ± θ, wherein, α is the angle of rotating in t1 to the t2 time period, β is the angle between t1 moment first encoding strip mark and t2 moment second encoding strip target unit direction vector, and θ is the angle between the first encoding strip mark and the second encoding strip mark.
CN201310366941.2A 2013-08-21 2013-08-21 Based on angle detection device and the method for machine vision Active CN103389121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310366941.2A CN103389121B (en) 2013-08-21 2013-08-21 Based on angle detection device and the method for machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310366941.2A CN103389121B (en) 2013-08-21 2013-08-21 Based on angle detection device and the method for machine vision

Publications (2)

Publication Number Publication Date
CN103389121A CN103389121A (en) 2013-11-13
CN103389121B true CN103389121B (en) 2015-12-09

Family

ID=49533466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310366941.2A Active CN103389121B (en) 2013-08-21 2013-08-21 Based on angle detection device and the method for machine vision

Country Status (1)

Country Link
CN (1) CN103389121B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105004323B (en) * 2015-07-03 2016-08-17 长沙理工大学 A kind of cap like wine bottle cap rotation angle measurement based on machine vision and modification method
CN105352856B (en) * 2015-12-02 2018-06-15 宁波新边界科学仪器有限公司 Measure method and its device of the liquid in the advancing contact angle of the surface of solids, receding contact angle and retention force
CN107014317A (en) * 2017-05-05 2017-08-04 中国科学院长春光学精密机械与物理研究所 A kind of sub-pixel angular displacement divided method and device based on image detector
CN108833805A (en) * 2018-06-27 2018-11-16 北京中科知识工程技术研究院 A kind of stingy figure modeling method of mobile phone photograph light field matrix three-dimensional
CN108810424A (en) * 2018-06-27 2018-11-13 淄博丙合商贸有限公司 A kind of full-automatic mobile phone photograph ring object methods of exhibiting
CN109068120A (en) * 2018-06-27 2018-12-21 北京中科知识工程技术研究院 A kind of mobile phone photograph light field matrix three-dimensional modeling method
CN108833806A (en) * 2018-06-27 2018-11-16 北京中科知识工程技术研究院 A kind of stingy figure ring object methods of exhibiting of mobile phone
CN109059878A (en) * 2018-08-03 2018-12-21 中国航空工业集团公司雷华电子技术研究所 The airborne radar antenna two degree-of-freedom motion attitude measurement method of view-based access control model identification
CN108734044B (en) * 2018-08-13 2024-06-14 南京恒稳优电技术有限公司 Artwork identification equipment
CN112361995B (en) * 2020-12-02 2022-06-24 四川云盾光电科技有限公司 Visual absolute type rotation angle measuring method and device
CN113086801B (en) * 2021-05-18 2021-11-30 华鼎世纪(北京)国际科技有限公司 Elevator data acquisition and transmission method, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504287A (en) * 2009-01-22 2009-08-12 浙江大学 Attitude parameter evaluation method for unmanned vehicle independent landing based on visual information
CN101604448A (en) * 2009-03-16 2009-12-16 北京中星微电子有限公司 A kind of speed-measuring method of moving target and system
CN101963500A (en) * 2010-09-28 2011-02-02 四川大学 Computer vision large-scale distance measuring method and portable distance measurer for applying same
CN103105132A (en) * 2012-08-31 2013-05-15 成都唐源电气有限责任公司 Non-contact geometrical parameter detecting system based on machine vision
US20130208011A1 (en) * 2009-03-14 2013-08-15 Lester F. Ludwig High-performance closed-form single-scan calculation of oblong-shape rotation angles from image data of arbitrary size and location using running sums

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504287A (en) * 2009-01-22 2009-08-12 浙江大学 Attitude parameter evaluation method for unmanned vehicle independent landing based on visual information
US20130208011A1 (en) * 2009-03-14 2013-08-15 Lester F. Ludwig High-performance closed-form single-scan calculation of oblong-shape rotation angles from image data of arbitrary size and location using running sums
CN101604448A (en) * 2009-03-16 2009-12-16 北京中星微电子有限公司 A kind of speed-measuring method of moving target and system
CN101963500A (en) * 2010-09-28 2011-02-02 四川大学 Computer vision large-scale distance measuring method and portable distance measurer for applying same
CN103105132A (en) * 2012-08-31 2013-05-15 成都唐源电气有限责任公司 Non-contact geometrical parameter detecting system based on machine vision

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于机器视觉的平面夹角测量方法;雷经发等;《基于机器视觉的平面夹角测量方法》;20110830;第39卷(第8期);正文第54-58页及附图1-5 *

Also Published As

Publication number Publication date
CN103389121A (en) 2013-11-13

Similar Documents

Publication Publication Date Title
CN103389121B (en) Based on angle detection device and the method for machine vision
CN105043259B (en) Digit Control Machine Tool rotary shaft error detection method based on binocular vision
CN106017520B (en) A kind of absolute optical encoder coding method and the encoder for implementing this method
CN107607040B (en) Three-dimensional scanning measurement device and method suitable for strong reflection surface
CN100562707C (en) Binocular vision rotating axis calibration method
CN103245322B (en) A kind of distance-finding method based on binocular stereo vision and system
Boltes et al. Automatic extraction of pedestrian trajectories from video recordings
CN102168954B (en) Monocular-camera-based method for measuring depth, depth field and sizes of objects
CN101727670B (en) Flexible calibrating method and device for variable-format multiple-camera system
CN105092607B (en) Spherical optics element surface flaw evaluation method
US20090324009A1 (en) Method and system for the determination of object positions in a volume
CN105466334B (en) The lens location calibration method of more camera lens vision collecting devices
CN104036522A (en) Water flowing speed monitoring method based on moving target identification in videos
US20040228517A1 (en) Method and arrangement for the photographically detecting the spatial form of an object
CN101738172B (en) Method for three-dimensional measurement of high sampling density color structured light based on green stripe segmentation
CN102073324A (en) Linearly polarized light-based polarization tracking system and method
US9805455B2 (en) Rotary encoder system
CN105426809A (en) Method for automatically identifying instrument pointer
KR102014228B1 (en) Path detection system based on solar-blind ultraviolet optical signal
CN101493312A (en) Micro imaging high precision three-dimensional detection device and method
CN101685197B (en) Method for evaluating tangential distortion indexes of lens of camera
CN105783970B (en) A kind of Digital identification method of automobile meter pointer
CN117451000B (en) Intelligent rail train road subgrade settlement machine vision detection method and system
CN106680529B (en) Rotating speed measuring device and method based on double-sine variable density stripes
CN1141670C (en) 3D tracking and measurement method of moving objects by 2D code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant