CN108876842A - A kind of measurement method, system, equipment and the storage medium of sub-pixel edge angle - Google Patents
A kind of measurement method, system, equipment and the storage medium of sub-pixel edge angle Download PDFInfo
- Publication number
- CN108876842A CN108876842A CN201810359329.5A CN201810359329A CN108876842A CN 108876842 A CN108876842 A CN 108876842A CN 201810359329 A CN201810359329 A CN 201810359329A CN 108876842 A CN108876842 A CN 108876842A
- Authority
- CN
- China
- Prior art keywords
- measured
- region
- sub
- measurement
- edge
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/26—Measuring arrangements characterised by the use of optical techniques for measuring angles or tapers; for testing the alignment of axes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20024—Filtering details
- G06T2207/20032—Median filtering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30164—Workpiece; Machine component
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
This application discloses measurement method, system, equipment and the storage medium of a kind of sub-pixel edge angle, which includes:The original image for acquiring standardized element, establishes measurement model and adds the distribution parameter of the measured zone of the original image Plays part edge;The target image for acquiring part to be measured obtains the region to be measured of part edge to be measured in the target image;The region to be measured is aligned with the measured zone, extracts the marginal point in the region to be measured;Edge fitting is carried out to the region to be measured using RANSAC algorithm, obtains the sub-pixel edge angle of the part to be measured.The application carries out region alignment by the measurement model established, then carries out edge fitting by RANSAC algorithm, finally obtains sub-pixel edge angle, measurement model setting is simple, and calculation amount is few, improves the precision of measurement, and the robustness of system makes moderate progress, and measurement efficiency is high.
Description
Technical field
The present invention relates to technical field of vision detection, more particularly to a kind of sub-pixel edge angle measurement method, be
System, equipment and storage medium.
Background technique
The dimensional measurement of industrial products is the important link in industrial products quality inspection.In nowadays product diversification, mass
Flow line production mode in, artificial detection can no longer meet product quality cost, efficiency and in terms of requirement.
Vision-based detection is exactly a kind of novel product testing technology, it is that and have very high spirit based on image processing techniques
Activity and accuracy.
Vision-based detection is then to send image processing system to by the picture signal of the image acquisition equipments such as camera, according to
The information such as pixel distribution and brightness, color are handled these information to extract specific characteristic information, finally according to processing
Result control the movement of equipment.It has immeasurable value in terms of detection.
In general vision-based detection, image is removed dryness, binaryzation, after the operation such as Threshold segmentation, can generally be selected
Some edge detection algorithms, such as single order have Roberts Cross operator, Prewitt operator, Sobel operator, Kirsch calculation
Son etc., second order have Canny operator, Laplacian operator etc..The edge that wherein most operator can be detected is pixel
Rank, but with the development of industrial technology, traditional edge detection method is no longer satisfied actual needs, therefore sub-pix
The detection method of grade is come into being, it is usually to carry out binaryzation analysis to image, then excessive for gradually occurring in image
The region of variation, the sub-pixel location of marginal point is obtained by a variety of methods such as interpolation, fitting, and now common method has square side
Method, interpolation method and fitting process.
However these methods are more sensitive for the noise of image, or complex for the calculation amount of model.Example
Such as in general edge detection, after carrying out binary conversion treatment, Threshold segmentation to image, in order to obtain more smooth edge
Line, it will usually expansion or erosion operation are carried out to it, the problem of precision that this has resulted in piece test is low, poor robustness.
Therefore, how to solve the problems, such as that precision is low in edge detection, model calculation is complicated, be those skilled in the art urgently
The technical issues of solution.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of measurement method of sub-pixel edge angle, system, equipment and
The setting of storage medium, measurement model is simple, it is possible to reduce calculation amount improves the robustness of system, improve measurement precision and
Efficiency.Its concrete scheme is as follows:
A kind of measurement method of sub-pixel edge angle, including:
The original image for acquiring standardized element, establishes measurement model and adds the original image Plays part edge
The distribution parameter of measured zone;
The target image for acquiring part to be measured obtains the region to be measured of part edge to be measured in the target image;
The region to be measured is aligned with the measured zone, extracts the marginal point in the region to be measured;
Edge fitting is carried out to the region to be measured using RANSAC algorithm, obtains the Asia of the part to be measured
Pixel edge angle.
Preferably, in the measurement method of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention, standard zero is acquired
The original image of part establishes measurement model and adds the distribution ginseng of the measured zone of the original image Plays part edge
Number, specifically includes:
The original image of standardized element is acquired by industrial camera;
Measurement model is established, and the measurement line object that two intersect is added to the measurement model;
According to two measurement line objects, the measured zone of the original image Plays part edge is determined;
Gray processing and median filter process are carried out to the original image, obtain original-gray image;
It is handled in the original-gray image by Threshold segmentation, obtains the distribution parameter of the measured zone and addition
To the measurement model.
Preferably, in the measurement method of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention, according to two institutes
Measurement line object is stated, the measured zone of the original image Plays part edge is determined, specifically includes:
The measurement rectangle to draw the line in advance is set, and the center of the measurement rectangle is the friendship of two measurement line objects
Point;
By stretching or shrinking two measurement line objects, the range of the measurement rectangle is adjusted, with the determination original
The measured zone of beginning image Plays part edge.
Preferably, in the measurement method of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention, acquisition to be measured zero
The target image of part obtains the region to be measured of part edge to be measured in the target image, specifically includes:
The target image of part to be measured is acquired by industrial camera;
Gray processing and median filter process are carried out to the target image, obtain gray level image to be measured;
It is handled in the gray level image to be measured by Threshold segmentation, obtains part edge to be measured in the target image
Region to be measured.
Preferably, in the measurement method of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention, the area to be measured
Domain is interior in drawing the line in advance for the measurement rectangle.
It preferably, will be described to be measured in the measurement method of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention
Region is aligned with the measured zone, is extracted the marginal point in the region to be measured, is specifically included:
One vertex of the measured zone is as a reference point;
According to the reference point, the region to be measured is subjected to shape with the measured zone or affine transformation is aligned, really
The marginal position in the fixed region to be measured, extracts the marginal point in the region to be measured.
Preferably, it in the measurement method of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention, is taken out using random
Sample consistency algorithm carries out edge fitting to the region to be measured, obtains the sub-pixel edge angle of the part to be measured, specifically
Including:
Edge fitting is carried out to the region to be measured using RANSAC algorithm, obtains the Asia of the part to be measured
Pixel edge profile;
Two intersecting straight lines for being distributed in the sub-pixel edge profile are found out, obtain the sub-pix side of the part to be measured
Edge angle.
The embodiment of the invention also provides a kind of measuring systems of sub-pixel edge angle, including:
Model building module, for acquiring the original image of standardized element, establishing measurement model and adding the original graph
As the distribution parameter of the measured zone of Plays part edge;
Region obtains module and obtains part side to be measured in the target image for acquiring the target image of part to be measured
The region to be measured of edge;
Region alignment module extracts the region to be measured for the region to be measured to be aligned with the measured zone
Marginal point;
Edge fitting module is obtained for carrying out edge fitting to the region to be measured using RANSAC algorithm
The sub-pixel edge angle of the part to be measured out.
The embodiment of the invention also provides a kind of virtual desktops to show equipment, which is characterized in that including processor and storage
Device;Wherein, it realizes when the processor executes the computer program saved in the memory as provided in an embodiment of the present invention
The measurement method of above-mentioned sub-pixel edge angle.
The embodiment of the invention also provides a kind of computer readable storage mediums, which is characterized in that for storing computer
Program;It realizes when the computer program is executed by processor such as above-mentioned sub-pixel edge angle provided in an embodiment of the present invention
Measurement method.
Measurement method, system, equipment and the storage medium of a kind of sub-pixel edge angle provided by the present invention, the measurement
Method includes:The original image for acquiring standardized element, establishes measurement model and adds the original image Plays part edge
Measured zone distribution parameter;The target image for acquiring part to be measured obtains part edge to be measured in the target image
Region to be measured;The region to be measured is aligned with the measured zone, extracts the marginal point in the region to be measured;Using random
Consistency algorithm of sampling carries out edge fitting to the region to be measured, obtains the sub-pixel edge angle of the part to be measured.
The present invention carries out region alignment by the measurement model established, then carries out edge by RANSAC algorithm
Fitting finally obtains sub-pixel edge angle, and measurement model setting is simple, and calculation amount is few, improves the precision of measurement, and be
The robustness of system makes moderate progress, and measurement efficiency is high.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the measuring method flow chart of sub-pixel edge angle provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the measuring system of sub-pixel edge angle provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The present invention provides a kind of measurement method of sub-pixel edge angle, as shown in Figure 1, including the following steps:
S101, the original image for acquiring standardized element, establish measurement model and add the original image Plays part
The distribution parameter of the measured zone at edge;
In practical application, the original image of acquisition, which can be, compares standardized element with ambient background, comparative selection degree
Big image, in this way in Threshold segmentation processing later, color interval is easily scratched, and is easily obtained the original side of the standardized element
Edge;The measurement model just established is the data structure of an empty measurement model, is added in the data structure of this model later
Add the distribution parameter of the measured zone of original image Plays part edge;It should be noted that the calibrating parameters of camera, part
Pose, frame of reference variable, and the form parameter of the part to be measured measured later, the phases such as distribution parameter in region to be measured
Closing data can add in real time in the data structure of the measurement model, as reference data, to improve the operation of system
Speed;
The target image of S102, acquisition part to be measured obtain the region to be measured of part edge to be measured in the target image;
Similarly, the target image of acquisition, which can be, compares part to be measured with ambient background, the big figure of comparative selection degree
Picture, in this way in Threshold segmentation processing later, color interval is easily scratched, and is easily obtained the original edge of the part to be measured;
S103, the region to be measured is aligned with the measured zone, extracts the marginal point in the region to be measured;
When practical application, the marginal point for extracting the region to be measured can be with real-time update into measurement model;
S104, edge fitting is carried out to the region to be measured using RANSAC algorithm, obtains described to be measured zero
The sub-pixel edge angle of part.
In the measurement method of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention, standardized element is acquired first
Original image establishes measurement model and adds the distribution parameter of the measured zone of the original image Plays part edge;So
The target image for acquiring part to be measured afterwards obtains the region to be measured of part edge to be measured in the target image;It later will be described
Region to be measured is aligned with the measured zone, extracts the marginal point in the region to be measured;Finally utilize random sampling consistency
Algorithm carries out edge fitting to the region to be measured, obtains the sub-pixel edge angle of the part to be measured.Pass through foundation in this way
Measurement model carry out region alignment, then by RANSAC algorithm progress edge fitting, finally obtain sub-pix side
Edge angle, measurement model setting is simple, and calculation amount is few, improves the precision of measurement, and the robustness of system makes moderate progress, surveys
Amount efficiency is high.
It should be noted that sub-pixel edge angle can be understood as the angle between the edge in region to be measured, it is sub- picture
The angle of plain rank.Here there are certain angle, such as triangle part, the triangle in the edge of standardized element and part to be measured
The sub-pixel edge angle of shape part just refers to the angle between any two sides of triangle.Above-mentioned alignment is due to part to be measured
Be placed with certain location error, in order to accurately apply measurement model, need target image to ajust.
In the specific implementation, in the measurement method of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention, step
S101 acquires the original image of standardized element, establishes measurement model and adds the measurement of the original image Plays part edge
The distribution parameter in region, can specifically include following steps:
Step 1: acquiring the original image of standardized element by industrial camera;
It can as long as obtaining the size of the original image using industrial camera acquisition image in practical application
To avoid high-precision camera is used, reduce cost;
Step 2: establishing measurement model, and the measurement line object that two intersect is added to the measurement model;
It should be noted that two measurement line objects being added, measurement rectangular extent delimited for after and prepared, can be kept away
Exempt from the original edge that dilation erosion operation changes part;
Step 3: determining the measurement zone of the original image Plays part edge according to two measurement line objects
Domain;
Specifically, in the specific implementation, when executing step 3, the measurement rectangle to draw the line in advance can be set first
As long as (comprising measured zone, it is specific measure shape can according to the actual situation depending on), the center of the measurement rectangle is two
The intersection point of the measurement line object, the center of guarantee measured zone is on the measurement line object in this way;Then by stretch or
Two measurement line objects are shunk, adjust the range of the measurement rectangle, so that it may determine the original image Plays zero
The measured zone at part edge;The measured zone may be considered include a part of edge image of standardized element rectangular-shaped area
Domain;
It should be noted that in order to reduce operand, four sides of the measurement rectangle respectively with the original image
Reference axis keeping parallelism;That is, the opposite both sides of the measurement rectangle and the X-axis keeping parallelism of the original image;Institute
State the Y-axis keeping parallelism on the in addition opposite both sides and the original image of measurement rectangle;
Step 4: carrying out gray processing and median filter process to the original image, original-gray image is obtained;
Step 5: handling in the original-gray image by Threshold segmentation, the distribution ginseng of the measured zone is obtained
It counts and is added to the measurement model;
It should be noted that the measured zone of part is described by Threshold segmentation in original-gray image, specifically
Threshold value can according to the actual situation depending on;In measurement model, thus it is possible to vary some reference values, such as camera calibrating parameters,
Pose, variable of frame of reference of part etc..
Further, in the specific implementation, in the measurement side of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention
In method, step S102 acquires the target image of part to be measured, obtains the region to be measured of part edge to be measured in the target image,
It can specifically include following steps:
Step 1: acquiring the target image of part to be measured by industrial camera;
Image is acquired using industrial camera in practical application, cost can be reduced to avoid high-precision camera is used;
Step 2: carrying out gray processing and median filter process to the target image, gray level image to be measured is obtained;
Step 3: being handled in the gray level image to be measured by Threshold segmentation, obtain to be measured zero in the target image
The region to be measured at part edge;
It should be noted that the region to be measured can be interior in drawing the line in advance for the measurement rectangle, that is to say, that
The measurement rectangle to be drawn the line before can calling in advance is to be measured on part edge to be measured in the target image to find
Region;Assuming that target part is triangle part, it includes a part of edge of triangle part which, which may be considered,
The triangular shape region of image;In addition, it should be noted that light-source brightness should be kept in measurement process in order to improve accuracy
Unanimously.
Further, in the specific implementation, in the measurement side of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention
In method, the region to be measured is aligned by step S103 with the measured zone, extracts the marginal point in the region to be measured, specifically
It may comprise steps of:
Firstly, a vertex by the measured zone is as a reference point;
Then, according to the reference point, the region to be measured and the measured zone are subjected to shape or affine transformation pair
Together, the marginal position for determining the region to be measured can extract the marginal point in the region to be measured from marginal position.
Further, in the specific implementation, in the measurement side of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention
In method, step S104 carries out edge fitting to the region to be measured using RANSAC algorithm, obtains described to be measured zero
The sub-pixel edge angle of part, can specifically include following steps:
Firstly, carrying out edge fitting to the region to be measured using RANSAC algorithm, described to be measured zero is obtained
The sub-pixel edge profile of part;
Then, two intersecting straight lines for being distributed in the sub-pixel edge profile are found out, obtain the Asia of the part to be measured
Pixel edge angle.
It should be noted that in the specific implementation, in order to guarantee the accuracy of measurement, the pose of the part to be measured should be protected
It holds consistent.
Based on the same inventive concept, the embodiment of the invention also provides a kind of measuring system of sub-pixel edge angle, by
It is similar to a kind of aforementioned measurement method of sub-pixel edge angle in the principle that the system solves the problems, such as, therefore the implementation of the system
It may refer to the implementation of the measurement method of sub-pixel edge angle, overlaps will not be repeated.
In the specific implementation, the measuring system of sub-pixel edge angle provided in an embodiment of the present invention, as shown in Fig. 2, tool
Body may include:
Model building module 11, for acquiring the original image of standardized element, establishing measurement model and adding described original
The distribution parameter of the measured zone of image Plays part edge;
Region obtains module 12 and obtains part to be measured in the target image for acquiring the target image of part to be measured
The region to be measured at edge;
Region alignment module 13 extracts the area to be measured for the region to be measured to be aligned with the measured zone
The marginal point in domain;
Edge fitting module 14, for carrying out edge fitting to the region to be measured using RANSAC algorithm,
Obtain the sub-pixel edge angle of the part to be measured.
In the measuring system of above-mentioned sub-pixel edge angle provided in an embodiment of the present invention, aforementioned four mould can be passed through
The interaction of block obtains sub-pixel edge angle, and measurement model setting is simple, and calculation amount is few, improves the precision of measurement, and
And the robustness of system makes moderate progress, measurement efficiency is high.
Correspondingly, the embodiment of the invention also discloses a kind of virtual desktops to show equipment, including processor and memory;Its
In, the processor realizes sub-pixel edge disclosed in previous embodiment when executing the computer program saved in the memory
The measurement method of angle.
It can be with reference to corresponding contents disclosed in previous embodiment, herein no longer about the more specifical process of the above method
It is repeated.
Further, the invention also discloses a kind of computer readable storage mediums, for storing computer program;It is described
The measurement method of aforementioned disclosed sub-pixel edge angle is realized when computer program is executed by processor.
It can be with reference to corresponding contents disclosed in previous embodiment, herein no longer about the more specifical process of the above method
It is repeated.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.For being disclosed in embodiment
For system, equipment, storage medium, since it is corresponded to the methods disclosed in the examples, so be described relatively simple, correlation
Place is referring to method part illustration.
Measurement method, system, equipment and the storage medium of a kind of sub-pixel edge angle provided by the present invention, the measurement
Method includes:The original image for acquiring standardized element, establishes measurement model and adds the original image Plays part edge
Measured zone distribution parameter;The target image for acquiring part to be measured obtains part edge to be measured in the target image
Region to be measured;The region to be measured is aligned with the measured zone, extracts the marginal point in the region to be measured;Using random
Consistency algorithm of sampling carries out edge fitting to the region to be measured, obtains the sub-pixel edge angle of the part to be measured.This
Invention carries out region alignment by the measurement model established, then carries out edge fitting by RANSAC algorithm, finally
Sub-pixel edge angle is obtained, measurement model setting is simple, and calculation amount is few, improves the precision of measurement, and the robust of system
Property make moderate progress, measurement efficiency is high.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Detailed Jie has been carried out to the measurement method and its measuring system of sub-pixel edge angle provided by the present invention above
It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only
It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair
Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage
Solution is limitation of the present invention.
Claims (10)
1. a kind of measurement method of sub-pixel edge angle, which is characterized in that including:
The original image for acquiring standardized element, establishes measurement model and adds the measurement of the original image Plays part edge
The distribution parameter in region;
The target image for acquiring part to be measured obtains the region to be measured of part edge to be measured in the target image;
The region to be measured is aligned with the measured zone, extracts the marginal point in the region to be measured;
Edge fitting is carried out to the region to be measured using RANSAC algorithm, obtains the sub-pix of the part to be measured
Edge angle.
2. the measurement method of sub-pixel edge angle according to claim 1, which is characterized in that acquire the original of standardized element
Beginning image establishes measurement model and adds the distribution parameter of the measured zone of the original image Plays part edge, specifically
Including:
The original image of standardized element is acquired by industrial camera;
Measurement model is established, and the measurement line object that two intersect is added to the measurement model;
According to two measurement line objects, the measured zone of the original image Plays part edge is determined;
Gray processing and median filter process are carried out to the original image, obtain original-gray image;
It is handled in the original-gray image by Threshold segmentation, obtains the distribution parameter of the measured zone and be added to institute
State measurement model.
3. the measurement method of sub-pixel edge angle according to claim 2, which is characterized in that according to two measurements
Line object determines the measured zone of the original image Plays part edge, specifically includes:
The measurement rectangle to draw the line in advance is set, and the center of the measurement rectangle is the intersection point of two measurement line objects;
By stretching or shrinking two measurement line objects, the range of the measurement rectangle is adjusted, with the determination original graph
As the measured zone of Plays part edge.
4. the measurement method of sub-pixel edge angle according to claim 3, which is characterized in that acquire the mesh of part to be measured
Logo image obtains the region to be measured of part edge to be measured in the target image, specifically includes:
The target image of part to be measured is acquired by industrial camera;
Gray processing and median filter process are carried out to the target image, obtain gray level image to be measured;
It is handled in the gray level image to be measured by Threshold segmentation, obtains the to be measured of part edge to be measured in the target image
Region.
5. the measurement method of sub-pixel edge angle according to claim 4, which is characterized in that the region to be measured is in institute
It is interior to state drawing the line in advance for measurement rectangle.
6. the measurement method of sub-pixel edge angle according to claim 5, which is characterized in that by the region to be measured with
The measured zone alignment, extracts the marginal point in the region to be measured, specifically includes:
One vertex of the measured zone is as a reference point;
According to the reference point, the region to be measured is subjected to shape with the measured zone or affine transformation is aligned, determines institute
The marginal position for stating region to be measured extracts the marginal point in the region to be measured.
7. the measurement method of sub-pixel edge angle according to claim 6, which is characterized in that consistent using random sampling
Property algorithm edge fitting is carried out to the region to be measured, obtain the sub-pixel edge angle of the part to be measured, specifically include:
Edge fitting is carried out to the region to be measured using RANSAC algorithm, obtains the sub-pix of the part to be measured
Edge contour;
Two intersecting straight lines for being distributed in the sub-pixel edge profile are found out, obtain the sub-pixel edge angle of the part to be measured
Degree.
8. a kind of measuring system of sub-pixel edge angle, which is characterized in that including:
Model building module, for acquiring the original image of standardized element, establishing measurement model and adding in the original image
The distribution parameter of the measured zone at standardized element edge;
Region obtains module, for acquiring the target image of part to be measured, obtains part edge to be measured in the target image
Region to be measured;
Region alignment module extracts the side in the region to be measured for the region to be measured to be aligned with the measured zone
Edge point;
Edge fitting module obtains institute for carrying out edge fitting to the region to be measured using RANSAC algorithm
State the sub-pixel edge angle of part to be measured.
9. a kind of virtual desktop shows equipment, which is characterized in that including processor and memory;Wherein, the processor executes
Sub-pixel edge angle as described in any one of claim 1 to 7 is realized when the computer program saved in the memory
Measurement method.
10. a kind of computer readable storage medium, which is characterized in that for storing computer program;The computer program quilt
Processor realizes the measurement method of sub-pixel edge angle as described in any one of claim 1 to 7 when executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810359329.5A CN108876842A (en) | 2018-04-20 | 2018-04-20 | A kind of measurement method, system, equipment and the storage medium of sub-pixel edge angle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810359329.5A CN108876842A (en) | 2018-04-20 | 2018-04-20 | A kind of measurement method, system, equipment and the storage medium of sub-pixel edge angle |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108876842A true CN108876842A (en) | 2018-11-23 |
Family
ID=64326431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810359329.5A Pending CN108876842A (en) | 2018-04-20 | 2018-04-20 | A kind of measurement method, system, equipment and the storage medium of sub-pixel edge angle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108876842A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110322395A (en) * | 2019-06-18 | 2019-10-11 | 电子科技大学中山学院 | Part outline shape detection method and device based on image processing and affine transformation |
CN110866949A (en) * | 2019-11-15 | 2020-03-06 | 广东利元亨智能装备股份有限公司 | Center point positioning method and device, electronic equipment and storage medium |
CN113269767B (en) * | 2021-06-07 | 2023-07-18 | 中电科机器人有限公司 | Batch part feature detection method, system, medium and equipment based on machine vision |
CN116503415A (en) * | 2023-06-29 | 2023-07-28 | 深圳思谋信息科技有限公司 | Defect detection method, defect detection device, computer equipment and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103499296A (en) * | 2013-10-21 | 2014-01-08 | 东华大学 | Batch part automatic detection system and method based on machine vision |
CN104574421A (en) * | 2015-01-29 | 2015-04-29 | 北方工业大学 | Large-breadth small-overlapping-area high-precision multispectral image registration method and device |
-
2018
- 2018-04-20 CN CN201810359329.5A patent/CN108876842A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103499296A (en) * | 2013-10-21 | 2014-01-08 | 东华大学 | Batch part automatic detection system and method based on machine vision |
CN104574421A (en) * | 2015-01-29 | 2015-04-29 | 北方工业大学 | Large-breadth small-overlapping-area high-precision multispectral image registration method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110322395A (en) * | 2019-06-18 | 2019-10-11 | 电子科技大学中山学院 | Part outline shape detection method and device based on image processing and affine transformation |
CN110866949A (en) * | 2019-11-15 | 2020-03-06 | 广东利元亨智能装备股份有限公司 | Center point positioning method and device, electronic equipment and storage medium |
CN113269767B (en) * | 2021-06-07 | 2023-07-18 | 中电科机器人有限公司 | Batch part feature detection method, system, medium and equipment based on machine vision |
CN116503415A (en) * | 2023-06-29 | 2023-07-28 | 深圳思谋信息科技有限公司 | Defect detection method, defect detection device, computer equipment and computer readable storage medium |
CN116503415B (en) * | 2023-06-29 | 2023-09-12 | 深圳思谋信息科技有限公司 | Defect detection method, defect detection device, computer equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Trujillo-Pino et al. | Accurate subpixel edge location based on partial area effect | |
Liu et al. | Concrete crack assessment using digital image processing and 3D scene reconstruction | |
KR101758058B1 (en) | Apparatus and method for estimating camera motion using depth information, augmented reality system | |
CN108876842A (en) | A kind of measurement method, system, equipment and the storage medium of sub-pixel edge angle | |
Sun et al. | A subpixel edge detection method based on an arctangent edge model | |
JP6899189B2 (en) | Systems and methods for efficiently scoring probes in images with a vision system | |
CN111257338B (en) | Surface defect detection method for mirror surface and mirror-like object | |
Alemán-Flores et al. | Line detection in images showing significant lens distortion and application to distortion correction | |
US20160343143A1 (en) | Edge detection apparatus, edge detection method, and computer readable medium | |
JP2011182397A (en) | Method and apparatus for calculating shift length | |
CN102589516A (en) | Dynamic distance measuring system based on binocular line scan cameras | |
Flesia et al. | Sub-pixel straight lines detection for measuring through machine vision | |
CN113781393B (en) | Screen defect detection method, device, equipment and storage medium | |
CN105787870A (en) | Graphic image splicing fusion system | |
CN107561736B (en) | LCD defect detection method based on Fourier transform and Hough transform | |
Apdilah et al. | A study of Frei-Chen approach for edge detection | |
US9972095B2 (en) | Image measuring apparatus and non-temporary recording medium on which control program of same apparatus is recorded | |
CN109035230B (en) | Round hole diameter visual measurement method | |
CN113610775A (en) | Pill detection method and device for pill plate and storage medium | |
CN105427315B (en) | Digital instrument image position testing method and device | |
KR101574195B1 (en) | Auto Calibration Method for Virtual Camera based on Mobile Platform | |
CN110298834B (en) | Correction method of pixel-level edge effect and terminal equipment | |
Ziqiang et al. | Research of the algorithm calculating the length of bridge crack based on stereo vision | |
Evans et al. | Iterative roll angle estimation from dense disparity map | |
CN115222699A (en) | Defect detection method, defect detection device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181123 |