CN110500953A - Screw thread R value measurement method, device, computer equipment and storage medium - Google Patents

Screw thread R value measurement method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110500953A
CN110500953A CN201910619805.7A CN201910619805A CN110500953A CN 110500953 A CN110500953 A CN 110500953A CN 201910619805 A CN201910619805 A CN 201910619805A CN 110500953 A CN110500953 A CN 110500953A
Authority
CN
China
Prior art keywords
screw thread
flank profil
image
measured
thread flank
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910619805.7A
Other languages
Chinese (zh)
Other versions
CN110500953B (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.)
Guangdong Jiaming Intelligent Technology Co Ltd
Original Assignee
Guangdong Jiaming Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Jiaming Intelligent Technology Co Ltd filed Critical Guangdong Jiaming Intelligent Technology Co Ltd
Priority to CN201910619805.7A priority Critical patent/CN110500953B/en
Publication of CN110500953A publication Critical patent/CN110500953A/en
Application granted granted Critical
Publication of CN110500953B publication Critical patent/CN110500953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Abstract

This application involves a kind of screw thread R value measurement method, device, computer equipment and storage mediums.The described method includes: the first instruction is sent to laser, to control laser rays of the laser transmitting for keeping the thread of screw thread to be measured highlighted;The second instruction is sent to camera, to control the thread image that camera acquires screw thread to be measured;Multiple highlighted screw thread flank profils are shown on thread image;The thread image for obtaining camera acquisition determines the screw thread R value of screw thread to be measured according to highlighted screw thread flank profils multiple in thread image.The acquisition time that thread curve can be shortened using this method effectively improves the detection accuracy and measuring speed of screw thread R value, practical.

Description

Screw thread R value measurement method, device, computer equipment and storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of screw thread R value measurement method, screw thread R value measurement dress It sets, computer equipment and computer readable storage medium.
Background technique
For high-accuracy threaded metal workpiece, the control of processing quality is particularly important, one of them is for commenting Determine the critical index of screw thread tooth tip processing quality, i.e. thread R value.
Currently, the measurement process of thread R value is generally, the instrument for first passing through contact is surveyed and drawn to obtain contact shape song Line is then based on the R value of each thread of the curved measurement;This method can measure the R value of 1 or 2 thread per minute, survey It is slower to measure speed;Meanwhile the result difference that the measurement method measures the same position of identical workpiece in different time is larger, Repeatable accuracy is lower.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of screw thread R value measurement method, device, computer equipment And storage medium.
On the one hand, the embodiment of the present invention provides a kind of screw thread R value measurement method, which comprises
The first instruction is sent to laser, to control the laser transmitting for highlighting the thread of screw thread to be measured Laser rays;
The second instruction is sent to camera, to control the thread image that the camera acquires the screw thread to be measured;The spiral shell Multiple highlighted screw thread flank profils are shown on line tooth image;
The thread image for obtaining camera acquisition, according to highlighted screw thread flank profils multiple in the thread image, Determine the screw thread R value of the screw thread to be measured.
The step of control camera acquires the thread image of the screw thread to be measured in one of the embodiments, Before, further includes:
The relative position of the camera and the screw thread to be measured is adjusted, so that the shooting direction of the camera and institute The angle for stating the laser rays on screw thread to be measured, which meets, to impose a condition.
It is described according to highlighted screw thread flank profils multiple in the thread image in one of the embodiments, determine institute The step of stating the screw thread R value of screw thread to be measured include:
Determine the two sides contour line of each screw thread flank profil on the thread image;
According to the two sides contour line of each screw thread flank profil, the common reference line of the multiple screw thread flank profil is determined;
According to the two sides contour line of each screw thread flank profil and the common reference line, each of described screw thread to be measured is determined The R value of screw thread flank profil.
The two sides contour line of each screw thread flank profil on the determination thread image in one of the embodiments, The step of, comprising:
Just positioning is carried out to each screw thread flank profil on the thread image, obtains the image of each screw thread flank profil;
Based on the image of each screw thread flank profil, the multiple gray-scale level hops for being located at each screw thread flank profil two sides are determined;
The multiple Gray step point is fitted, the two sides contour line of each screw thread flank profil is obtained.
The two sides contour line according to each screw thread flank profil in one of the embodiments, determines the multiple screw thread The step of common reference line of flank profil, comprising:
By the intersection point of the two sides contour line of each screw thread flank profil, it is determined as the reference vertex of each screw thread flank profil;
According to the reference vertex of each screw thread flank profil, the common reference line of the multiple screw thread flank profil is determined.
The reference vertex according to each screw thread flank profil in one of the embodiments, determines the multiple thread The step of common reference line of exterior feature, comprising:
It is fitted by reference vertex of the least square method to each screw thread flank profil, obtains the common reference line.
The two sides contour line and the common reference according to each screw thread flank profil in one of the embodiments, Line, the step of determining the R value of each screw thread flank profil of the screw thread to be measured, comprising:
According to the reference vertex of each screw thread flank profil and the common reference line, reference area is determined;
The reference area is traversed, the practical vertex of each screw thread flank profil is obtained;
Obtain straight line by the practical vertex and parallel with the common reference line, the ginseng as each screw thread flank profil Examine line;
According to the two sides contour line and the reference line of each screw thread flank profil, each screw thread of the screw thread to be measured is determined The R value of flank profil.
The reference area is rectangular area in one of the embodiments,.
The two sides contour line and the reference line according to each screw thread flank profil in one of the embodiments, really The step of R value of each screw thread flank profil of the fixed screw thread to be measured, comprising:
It identifies the two sides contour line of each screw thread flank profil and the intersection point of the reference line, obtains the first of each screw thread flank profil Intersection point and the second intersection point;
The line segment length between first intersection point and second intersection point is obtained, each spiral shell as the screw thread to be measured The R value of line flank profil.
On the other hand, the embodiment of the present invention provides a kind of screw thread R value measurement mechanism, and described device includes:
Laser rays transmitting module, for sending the first instruction to laser, with control laser transmitting for make to Survey the highlighted laser rays of the thread of screw thread;
Image capture module acquires the screw thread to be measured for sending the second instruction to camera to control the camera Thread image;Multiple highlighted screw thread flank profils are shown on the thread image;
R value determining module, for obtaining the thread image of the camera acquisition, according to multiple in the thread image Highlighted screw thread flank profil determines the screw thread R value of the screw thread to be measured.
In another aspect, the embodiment of the present invention provides a kind of computer equipment, including memory and processor, the memory It is stored with computer program, the step of processor realizes a kind of screw thread R value measurement method when executing the computer program.
In another aspect, the embodiment of the present invention provides a kind of computer readable storage medium, it is stored thereon with computer program, The computer program realizes a kind of the step of screw thread R value measurement method when being executed by processor.
A technical solution in above-mentioned technical proposal has the following advantages that or the utility model has the advantages that by sending the to laser One instruction, to control laser rays of the laser transmitting for keeping the thread of screw thread to be measured highlighted;And second is sent to camera and is referred to It enables, to control the thread image that camera acquires screw thread to be measured, the acquisition time of this method thread curve can reach the left side 10ms The right side, thread curve acquisition speed are fast;Meanwhile the thread image by obtaining camera acquisition, and according in thread image Multiple highlighted screw thread flank profils, it may be determined that the screw thread R value of screw thread to be measured, this method can effectively improve the detection accuracy of screw thread R value, Practical, utilization rate is high.
Detailed description of the invention
Fig. 1 is the applied environment figure of screw thread R value measurement method in one embodiment;
Fig. 2 is the schematic flow chart of screw thread R value measurement method in one embodiment;
Fig. 3 is the schematic diagram of thread image capturing system in one embodiment;
Fig. 4 is the schematic diagram of screw thread flank profil image in one embodiment;
Fig. 5 is the schematic diagram of screw thread R value measurement mechanism in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Screw thread R value measurement method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, including Screw thread, thread image capturing system and screw thread R value measuring system to be measured, wherein screw thread to be measured can be fixedly placed in screw thread In tooth image capturing system, so that image of the thread image capturing system to its thread is acquired.Specifically, thread Image capturing system may include laser and camera, and laser can launch the laser for keeping the thread of screw thread to be measured highlighted Line, camera can collect the thread image of screw thread to be measured, and multiple highlighted screw thread flank profils are shown on the thread image;Spiral shell Line tooth image capturing system can be attached with screw thread R value measuring system by network, and screw thread R value measuring system is for obtaining spiral shell The collected thread image of line tooth image capturing system, and according to highlighted screw thread flank profils multiple in thread image, it determines The screw thread R value of screw thread to be measured.
It should be noted that in the embodiment of the present invention, described screw thread to be measured either comprising multiple helicitic textures one A screw thread set to be measured is also possible to single helicitic texture to be measured.The quantity of laser and camera with no restriction, can be with Screw thread quantity to be measured, position variation and change;In addition, screw thread to be measured can be the whole in bolt, screw, nut etc. Helicitic texture or partial thread formation, the type of thread are also not especially limited herein.
In one embodiment, as shown in Figures 2 and 3, a kind of screw thread R value measurement method is provided, is applied in this way It is illustrated for screw thread R value measuring system in Fig. 1, comprising the following steps:
S202, sends the first instruction to laser 100, emits spiral shell for making screw thread 300 to be measured to control laser 100 The highlighted laser rays of line tooth.
The first above-mentioned instruction, can be the controller in screw thread R value measuring system emits to laser 100 one and is used for The electric signal for controlling 100 working condition of laser can be used to realize automatic start-stop, automatic debugging of laser 100 etc.;Certainly, Laser 100 is also manually controllable and debugs.
Wherein, laser 100 can be understood as to emit the device of laser, can specifically select gas according to the actual situation In the types such as laser, solid state laser, semiconductor laser, dye laser, free electron laser, high power laser One or more lasers.The setting position of the laser 100, it is related to the placement position of screw thread 300 to be measured, if spiral shell to be measured Line 300 is horizontal positioned, and the placement position of laser 100 should be on the basis of it can launch vertical laser rays, so that swashing Light can guarantee that each section thread high brightness is almost the same, with uniform irradiation on the thread of screw thread 300 to be measured with after an action of the bowels It is continuous that the measurement of R value is carried out according to thread image.
It is of course also possible to according to the actual situation by 300 slant setting of screw thread to be measured, at this point, the position of laser 100 can be with The variation of 300 position of screw thread to be measured make and being adaptively adjusted.
S204, Xiang Xiangji 200 sends the second instruction, to control the thread image that camera 200 acquires screw thread 300 to be measured; Multiple highlighted screw thread flank profils are shown on thread image.
The second above-mentioned instruction can be the controller in screw thread R value measuring system emits to camera 200 one for controlling The electric signal of 200 working condition of camera processed can be used to realize the automatic start-stop of camera 200, automatic shooting, automatic focusing, automatic Switch camera site etc.;Certainly, camera 200 is also manually controllable and debugs.
That is the setting of 200 position of camera should ensure that the thread of screw thread 300 to be measured is located in its visual field, camera 200 Concrete type is not construed as limiting herein, has imaging function.
S206 obtains the thread image that camera 200 acquires, according to highlighted screw thread flank profils multiple in thread image, Determine the screw thread R value of screw thread 300 to be measured.
Obtain the mode of thread image, can by the active of controller in screw thread R value measuring system and periodically to Camera 200 sends image zooming-out signal, and camera 200 is after receiving image zooming-out signal, the figure that will shoot in its database As data are transmitted in screw thread R value measuring system;Alternatively, through camera 200 after detecting the thread image shot, it will Its active transmission is into screw thread R value measuring system.
Thread image herein can be the thread pictorial diagram for not making working process, be also possible to pass through image procossing Treated with the image for highlighting screw thread flank profil for technology (such as highlighted processing).
In the above embodiment of the present invention, executing subject can set for server, controller, processor or other image procossings It is standby, it can also be selected and be changed according to the actual situation certainly.
In the screw thread R value measurement method of above-described embodiment, by sending the first instruction to laser 100, to control laser Laser rays of the transmitting of device 100 for keeping the thread of screw thread 300 to be measured highlighted;And the second instruction is sent to camera 200, with control Camera 200 acquires the thread image of screw thread 300 to be measured, and this method can realize the automatic collection of thread image, and thread is bent The acquisition time of line can reach 10ms or so, and thread curve acquisition speed is fast;Meanwhile the spiral shell acquired by obtaining camera 200 Line tooth image, and according to highlighted screw thread flank profils multiple in thread image, it may be determined that the screw thread R value of screw thread to be measured, this method The detection accuracy of screw thread R value can be effectively improved, practical, utilization rate is high.
In some embodiments, referring to Fig. 3, before S204, screw thread R value measurement method can also include: to described The relative position of camera and the screw thread to be measured is adjusted, so that on the shooting direction of the camera and the screw thread to be measured The angle of the laser rays, which meets, to impose a condition.
I.e. by being adjusted to camera 200 and the relative position of screw thread 300 to be measured, to acquire screw thread 300 to be measured not With the thread image of angle;Wherein, the step of being adjusted to the relative position of camera 200 and screw thread 300 to be measured, can wrap It includes: screw thread 300 to be measured is rotated under the visual field of camera 200;The shooting direction of camera 200 and the angle of laser rays be 30 degree extremely 40 degree.
Specifically acquisition device is chosen as attached structure shown in Fig. 3 and system.
Wherein, 100 emission port of laser can be arranged vertically downward, to issue the laser rays extended along the vertical direction, camera 200 shooting direction and the angle of laser rays are chosen as 30 degree to 40 degree, it is contemplated that workpiece is semi-circular shape, camera 200 mostly Shooting direction and the angle maximum of laser rays can be 45 degree, according to the interference of the depth of field of camera lens and mechanical repeatable accuracy, theory It is then smaller that upper angle gets over large scale coefficient, measurement error, that is, smaller, so the shooting direction of camera 200 and the angle of laser rays are excellent It is selected as 40 degree;Workpiece (screw thread 300 to be measured) rotates below the visual field of the camera 200 (specifically, can be consolidated workpiece by fixture It is fixed, and rotate to+90 degree from -90 degree in vision system, should during, vision system can collect workpiece six it is even more The image of a position), to realize the multiangular measurement of workpiece;Specific fixture form, workpiece rotation angle, vision system acquisition Position etc. can be set according to the actual situation.
Preferably, camera 200 can be using the gray scale high resolution camera of global exposure.
In some embodiments, as shown in figure 4, S206 can specifically include: determining each screw thread on thread image The two sides contour line of flank profil;According to the two sides contour line of each screw thread flank profil, the common reference line of multiple screw thread flank profils is determined;Root According to the two sides contour line and common reference line of each screw thread flank profil, the R value of each screw thread flank profil of screw thread 300 to be measured is determined.
After getting thread image, it is first determined a common reference line relevant to all thread shapes, then Measure the R value of each screw thread flank profil one by one or simultaneously by the common reference line;The determination of the common reference line can be from each The two sides contour line of screw thread flank profil is started with.
Wherein, the two sides contour line of screw thread flank profil refers to the profile positioned at opposite sides for being used to form screw thread flank profil The determination of line, the contour line can be realized by image recognition technology.
In some embodiments, the step of the two sides contour line of each screw thread flank profil on above-mentioned determination thread image Suddenly, it can specifically include: just positioning being carried out to each screw thread flank profil on thread image, obtains the figure of each screw thread flank profil Picture;Based on the image of each screw thread flank profil, the multiple gray-scale level hops for being located at each screw thread flank profil two sides are determined;To multiple gray scales Step point is fitted, and obtains the two sides contour line of each screw thread flank profil.
Step 1: carrying out just positioning to each screw thread flank profil on thread image, concretely: in thread image Matching and Primary Location are carried out based on geometrical characteristic, i.e., extracts the default template image of thread first, is then based on The template matching algorithm of Hausdorff distance evaluates the matching degree of default template image and thread image to be analyzed, into And obtain the position of corresponding screw thread flank profil.
Step 2: being calculated on the basis of Primary Location using Prewitt edge detection operator template and sub-pix analysis Method finds the gray-scale level hop on thread image in fixed area.
Step 3: least square method specifically can be used and calculate most preferably by the way that the Gray step point searched out to be fitted Fitting a straight line.
The above method can be accurately obtained the two sides contour line of each screw thread flank profil on thread image, share to be subsequent The determination of reference line is laid a good foundation.
In some embodiments, as shown in figure 4, the above-mentioned two sides contour line according to each screw thread flank profil, determines multiple It the step of common reference line of screw thread flank profil, can specifically include: the intersection point of the two sides contour line of each screw thread flank profil determine For the reference vertex of each screw thread flank profil;According to the reference vertex of each screw thread flank profil, the shared base of multiple screw thread flank profils is determined Directrix.
In a specific embodiment, the above-mentioned reference vertex according to each screw thread flank profil, determines multiple screw threads The step of common reference line of flank profil, can specifically include: by least square method to the reference vertex of each screw thread flank profil into Row fitting, obtains common reference line.
It should be pointed out that the reference vertex effect of each screw thread flank profil is to determine the common reference of multiple screw thread flank profils Line, the not necessarily practical vertex of screw thread flank profil, the method for determining practical vertex are seen hereafter.
In some embodiments, as shown in figure 4, above-mentioned two sides contour line and shared base according to each screw thread flank profil Directrix, the step of determining the R value of each screw thread flank profil of screw thread 300 to be measured, may include: the benchmark according to each screw thread flank profil Vertex and common reference line, determine reference area;Reference area is traversed, the practical vertex of each screw thread flank profil is obtained;Obtain warp Cross practical vertex and the straight line parallel with shared reference line, the reference line as each screw thread flank profil;According to each screw thread flank profil Two sides contour line and reference line, determine the R value of each screw thread flank profil of screw thread 300 to be measured.
Above-mentioned reference vertex and common reference line according to each screw thread flank profil, specifically may be used at the step of determining reference area It is accomplished in several ways;For example, making using the vertical line of common reference line and common reference line as long side, the extending direction of broadside The reference area of a specific shape comprising reference vertex out, as shown in figure 4, reference area is but is not limited to rectangle region Domain.
It should be noted that the purpose for determining reference area is, the region that the practical vertex of thread is searched is reduced, is reduced Calculation amount;And by using multiple pixels in reference area in the screw thread flank profil of (rather than crossing on the straight line of reference vertex) Point data determines practical vertex, improves the stability and accuracy of definitive result.
In some embodiments, as shown in figure 4, it is above-mentioned according to the two sides contour line of each screw thread flank profil and reference Line, the step of determining the R value of each screw thread flank profil of screw thread 300 to be measured, comprising: identify the two sides contour line of each screw thread flank profil With the intersection point of reference line, the first intersection point and the second intersection point of each screw thread flank profil are obtained;Obtain the first intersection point and the second intersection point it Between line segment length, the R value of each screw thread flank profil as screw thread 300 to be measured.
The screw thread R value measurement method that the various embodiments described above propose, has the advantages that
1) screw thread R value measuring speed is fast, is not necessarily to manual intervention, the degree of automation and high-efficient.
2) measurement result more closing to reality value compared with prior art, and the measurement position of screw thread can be convenient adjustment, The screw thread quantity of measurement can be multiple simultaneously.
3) measurement reproducibility is good, and repeatable accuracy it is high (existing repeatable accuracy 0.06 or so, the method that the application proposes The repeatable accuracy of measurement result is in 0.008mm or so);Noise and environmental disturbances, strong robustness can be resisted.
It should be understood that for the various method embodiments described above, although each step in flow chart is according to arrow Instruction is successively shown, but these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless having herein bright True explanation, there is no stringent sequences to limit for the execution of these steps, these steps can execute in other order.And And at least part step in the flow chart of embodiment of the method may include multiple sub-steps or multiple stages, this is a little Step or stage are not necessarily to execute completion in synchronization, but can execute at different times, these sub-steps Perhaps the execution sequence in stage be also not necessarily successively carry out but can with the sub-step of other steps or other steps or At least part in person's stage executes in turn or alternately.
Based on thought identical with the screw thread R value measurement method in above-described embodiment, a kind of screw thread R value survey is also provided herein Measure device.
In one embodiment, as shown in figure 5, providing a kind of screw thread R value measurement mechanism, comprising: laser rays emits mould Block 401, image capture module 402 and R value determining module 403, in which:
Laser rays transmitting module 401, it is to be measured for making to control laser transmitting for sending the first instruction to laser The highlighted laser rays of the thread of screw thread;
Image capture module 402, for sending the second instruction to camera, to control the thread that camera acquires screw thread to be measured Image;Multiple highlighted screw thread flank profils are shown on thread image;
R value determining module 403, for obtaining the thread image of camera acquisition, according to multiple highlighted in thread image Screw thread flank profil, determine the screw thread R value of screw thread to be measured.
In some embodiments, image capture module 402 are specifically used for: to the phase of the camera and the screw thread to be measured Position is adjusted, so that the shooting direction of the camera and the angle satisfaction of the laser rays on the screw thread to be measured are set Fixed condition.
In some embodiments, R value determining module 403, is specifically used for: determining each screw thread flank profil on thread image Two sides contour line;According to the two sides contour line of each screw thread flank profil, the common reference line of multiple screw thread flank profils is determined;According to every The two sides contour line and common reference line of a screw thread flank profil, determine the R value of each screw thread flank profil of screw thread to be measured.
In some embodiments, R value determining module 403, is specifically also used to: to each screw thread flank profil on thread image Just positioning is carried out, the image of each screw thread flank profil is obtained;Based on the image of each screw thread flank profil, determines and be located at each screw thread flank profil Multiple gray-scale level hops of two sides;Multiple Gray step points are fitted, the two sides contour line of each screw thread flank profil is obtained.
In some embodiments, R value determining module 403, is specifically also used to: by the two sides contour line of each screw thread flank profil Intersection point is determined as the reference vertex of each screw thread flank profil;According to the reference vertex of each screw thread flank profil, multiple screw thread flank profils are determined Common reference line.
In some embodiments, R value determining module 403, is specifically used for: by least square method to each screw thread flank profil Reference vertex is fitted, and obtains common reference line.
In some embodiments, R value determining module 403, is specifically also used to: according to the reference vertex of each screw thread flank profil and Common reference line, determines reference area;Reference area is traversed, the practical vertex of each screw thread flank profil is obtained;It obtains by practical Vertex and the straight line parallel with shared reference line, the reference line as each screw thread flank profil;According to the two sides of each screw thread flank profil Contour line and reference line determine the R value of each screw thread flank profil of screw thread to be measured.
In some embodiments, reference area is rectangular area.
In some embodiments, R value determining module 403, is specifically also used to: identifying the two sides contour line of each screw thread flank profil With the intersection point of reference line, the first intersection point and the second intersection point of each screw thread flank profil are obtained;Obtain the first intersection point and the second intersection point it Between line segment length, the R value of each screw thread flank profil as screw thread to be measured.
Specific about screw thread R value measurement mechanism limits the restriction that may refer to above for screw thread R value measurement method, Details are not described herein.Modules in above-mentioned screw thread R value measurement mechanism can be fully or partially through software, hardware and combinations thereof To realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with soft Part form is stored in the memory in computer equipment, executes the corresponding behaviour of the above modules in order to which processor calls Make.
In addition, the logical partitioning of each program module is only to lift in the embodiment of the screw thread R value measurement mechanism of above-mentioned example Example explanation, can according to need in practical application, for example, for corresponding hardware configuration requirement or software realization convenience Consider, above-mentioned function distribution is completed by different program modules, i.e., is divided into the internal structure of screw thread R value measurement mechanism not Same program module, to complete all or part of the functions described above.
In one embodiment, a kind of computer equipment is provided, which can be image processing equipment, Internal structure chart can be as shown in Figure 6.The computer equipment includes processor, the memory, network connected by system bus Interface and database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program And database.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium. The database of the computer equipment is for storing screw thread R value measurement data.The network interface of the computer equipment be used for it is outer The terminal in portion passes through network connection communication.To realize a kind of screw thread R value measurement method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
The first instruction is sent to laser, to control laser of the laser transmitting for keeping the thread of screw thread to be measured highlighted Line;
The second instruction is sent to camera, to control the thread image that camera acquires screw thread to be measured;It is shown on thread image It is shown with multiple highlighted screw thread flank profils;
The thread image for obtaining camera acquisition determines to be measured according to highlighted screw thread flank profils multiple in thread image The screw thread R value of screw thread.
In one embodiment, processor execute computer program when also perform the steps of to the camera with it is described The relative position of screw thread to be measured is adjusted, so that the laser rays on the shooting direction of the camera and the screw thread to be measured Angle meet impose a condition.
In one embodiment, it is also performed the steps of on determining thread image when processor executes computer program Each screw thread flank profil two sides contour line;According to the two sides contour line of each screw thread flank profil, being total to for multiple screw thread flank profils is determined Use reference line;According to the two sides contour line and common reference line of each screw thread flank profil, each thread of screw thread to be measured is determined Wide R value.
In one embodiment, it also performs the steps of when processor executes computer program on thread image Each screw thread flank profil carries out just positioning, obtains the image of each screw thread flank profil;Based on the image of each screw thread flank profil, determination is located at Multiple gray-scale level hops of each screw thread flank profil two sides;Multiple Gray step points are fitted, each screw thread flank profil is obtained Two sides contour line.
In one embodiment, it also performs the steps of when processor executes computer program by each screw thread flank profil The intersection point of two sides contour line is determined as the reference vertex of each screw thread flank profil;According to the reference vertex of each screw thread flank profil, determine The common reference line of multiple screw thread flank profils.
In one embodiment, it also performs the steps of when processor executes computer program through least square method pair The reference vertex of each screw thread flank profil is fitted, and obtains common reference line.
In one embodiment, it also performs the steps of when processor executes computer program according to each screw thread flank profil Reference vertex and common reference line, determine reference area;Reference area is traversed, the practical vertex of each screw thread flank profil is obtained; Obtain straight line by practical vertex and parallel with shared reference line, the reference line as each screw thread flank profil;According to each spiral shell The two sides contour line and reference line of line flank profil determine the R value of each screw thread flank profil of screw thread to be measured.
In one embodiment, reference area is rectangular area.
In one embodiment, identification each screw thread flank profil is also performed the steps of when processor executes computer program Two sides contour line and reference line intersection point, obtain the first intersection point and the second intersection point of each screw thread flank profil;Obtain the first intersection point With the line segment length between the second intersection point, the R value of each screw thread flank profil as screw thread to be measured.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
The first instruction is sent to laser, to control laser of the laser transmitting for keeping the thread of screw thread to be measured highlighted Line;
The second instruction is sent to camera, to control the thread image that camera acquires screw thread to be measured;It is shown on thread image It is shown with multiple highlighted screw thread flank profils;
The thread image for obtaining camera acquisition determines to be measured according to highlighted screw thread flank profils multiple in thread image The screw thread R value of screw thread.
In one embodiment, it also performs the steps of when computer program is executed by processor to the camera and institute The relative position for stating screw thread to be measured is adjusted, so that the laser on the shooting direction of the camera and the screw thread to be measured The angle of line, which meets, to impose a condition.
In one embodiment, determining thread image is also performed the steps of when computer program is executed by processor On each screw thread flank profil two sides contour line;According to the two sides contour line of each screw thread flank profil, multiple screw thread flank profils are determined Common reference line;According to the two sides contour line and common reference line of each screw thread flank profil, each screw thread of screw thread to be measured is determined The R value of flank profil.
In one embodiment, it also performs the steps of when computer program is executed by processor on thread image Each screw thread flank profil carry out just positioning, obtain the image of each screw thread flank profil;Based on the image of each screw thread flank profil, position is determined Multiple gray-scale level hops in each screw thread flank profil two sides;Multiple Gray step points are fitted, each screw thread flank profil is obtained Two sides contour line.
In one embodiment, it is also performed the steps of when computer program is executed by processor by each screw thread flank profil Two sides contour line intersection point, be determined as the reference vertex of each screw thread flank profil;According to the reference vertex of each screw thread flank profil, really The common reference line of fixed multiple screw thread flank profils.
In one embodiment, it is also performed the steps of when computer program is executed by processor and passes through least square method The reference vertex of each screw thread flank profil is fitted, common reference line is obtained.
In one embodiment, it also performs the steps of when computer program is executed by processor according to each thread Wide reference vertex and common reference line, determines reference area;Reference area is traversed, the practical top of each screw thread flank profil is obtained Point;Obtain straight line by practical vertex and parallel with shared reference line, the reference line as each screw thread flank profil;According to each The two sides contour line and reference line of screw thread flank profil determine the R value of each screw thread flank profil of screw thread to be measured.
In one embodiment, reference area is rectangular area.
In one embodiment, identification each thread is also performed the steps of when computer program is executed by processor The intersection point of wide two sides contour line and reference line, obtains the first intersection point and the second intersection point of each screw thread flank profil;First is obtained to hand over Line segment length between point and the second intersection point, the R value of each screw thread flank profil as screw thread to be measured.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The term " includes " of embodiment hereof and " having " and their any deformations, it is intended that cover non-exclusive packet Contain.Such as contain series of steps or the process, method, system, product or equipment of (module) unit are not limited to arrange Out the step of or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these mistakes The intrinsic other step or units of journey, method, product or equipment.
Referenced herein " multiple " refer to two or more."and/or", the association for describing affiliated partner are closed System indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, individualism These three situations of B.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Referenced herein " first second " be only be the similar object of difference, do not represent for the specific of object Sequence, it is possible to understand that specific sequence or precedence can be interchanged in ground, " first second " in the case where permission.It should manage The object that solution " first second " is distinguished is interchangeable under appropriate circumstances so that the embodiments described herein can in addition to Here the sequence other than those of diagram or description is implemented.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (12)

1. a kind of screw thread R value measurement method, which comprises
The first instruction is sent to laser, to control laser of the laser transmitting for keeping the thread of screw thread to be measured highlighted Line;
The second instruction is sent to camera, to control the thread image that the camera acquires the screw thread to be measured;The thread Multiple highlighted screw thread flank profils are shown on image;
The thread image for obtaining the camera acquisition is determined according to highlighted screw thread flank profils multiple in the thread image The screw thread R value of the screw thread to be measured.
2. the method according to claim 1, wherein the control camera acquires the spiral shell of the screw thread to be measured Before the step of line tooth image, further includes:
The relative position of the camera and the screw thread to be measured is adjusted so that the shooting direction of the camera and it is described to The angle for surveying the laser rays on screw thread, which meets, to impose a condition.
3. method according to claim 1 or 2, which is characterized in that described according to multiple highlighted in the thread image Screw thread flank profil, the step of determining the screw thread R value of the screw thread to be measured includes:
Determine the two sides contour line of each screw thread flank profil on the thread image;
According to the two sides contour line of each screw thread flank profil, the common reference line of the multiple screw thread flank profil is determined;
According to the two sides contour line of each screw thread flank profil and the common reference line, each screw thread of the screw thread to be measured is determined The R value of flank profil.
4. according to the method described in claim 3, it is characterized in that, each thread on the determination thread image The step of two sides contour line of exterior feature, comprising:
Just positioning is carried out to each screw thread flank profil on the thread image, obtains the image of each screw thread flank profil;
Based on the image of each screw thread flank profil, the multiple gray-scale level hops for being located at each screw thread flank profil two sides are determined;
The multiple Gray step point is fitted, the two sides contour line of each screw thread flank profil is obtained.
5. according to the method described in claim 3, it is characterized in that, the two sides contour line according to each screw thread flank profil, really The step of common reference line of fixed the multiple screw thread flank profil, comprising:
By the intersection point of the two sides contour line of each screw thread flank profil, it is determined as the reference vertex of each screw thread flank profil;
According to the reference vertex of each screw thread flank profil, the common reference line of the multiple screw thread flank profil is determined.
6. according to the method described in claim 5, it is characterized in that, the reference vertex according to each screw thread flank profil, determines The step of common reference line of the multiple screw thread flank profil, comprising:
It is fitted by reference vertex of the least square method to each screw thread flank profil, obtains the common reference line.
7. according to the method described in claim 6, it is characterized in that, the two sides contour line according to each screw thread flank profil and The common reference line, the step of determining the R value of each screw thread flank profil of the screw thread to be measured, comprising:
According to the reference vertex of each screw thread flank profil and the common reference line, reference area is determined;
The reference area is traversed, the practical vertex of each screw thread flank profil is obtained;
Obtain straight line by the practical vertex and parallel with the common reference line, the reference as each screw thread flank profil Line;
According to the two sides contour line and the reference line of each screw thread flank profil, each screw thread flank profil of the screw thread to be measured is determined R value.
8. the method according to the description of claim 7 is characterized in that the reference area is rectangular area.
9. the method according to the description of claim 7 is characterized in that the two sides contour line according to each screw thread flank profil and The reference line, the step of determining the R value of each screw thread flank profil of the screw thread to be measured, comprising:
It identifies the two sides contour line of each screw thread flank profil and the intersection point of the reference line, obtains the first intersection point of each screw thread flank profil With the second intersection point;
The line segment length between first intersection point and second intersection point is obtained, each thread as the screw thread to be measured Wide R value.
10. a kind of screw thread R value measurement mechanism, which is characterized in that described device includes:
Laser rays transmitting module, for sending the first instruction to laser, to control the laser transmitting for making spiral shell to be measured The highlighted laser rays of the thread of line;
Image capture module, for sending the second instruction to camera, to control the screw thread that the camera acquires the screw thread to be measured Tooth image;Multiple highlighted screw thread flank profils are shown on the thread image;
R value determining module, for obtaining the thread image of the camera acquisition, according to multiple highlighted in the thread image Screw thread flank profil, determine the screw thread R value of the screw thread to be measured.
11. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 9 the method when executing the computer program.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 9 is realized when being executed by processor.
CN201910619805.7A 2019-07-10 2019-07-10 Thread R value measuring method and device, computer equipment and storage medium Active CN110500953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910619805.7A CN110500953B (en) 2019-07-10 2019-07-10 Thread R value measuring method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910619805.7A CN110500953B (en) 2019-07-10 2019-07-10 Thread R value measuring method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110500953A true CN110500953A (en) 2019-11-26
CN110500953B CN110500953B (en) 2021-10-26

Family

ID=68585602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910619805.7A Active CN110500953B (en) 2019-07-10 2019-07-10 Thread R value measuring method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110500953B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6111601A (en) * 1995-12-11 2000-08-29 Adachi; Yoshi Non-contacting laser gauge for qualifying screw fasteners and the like
CN103438827A (en) * 2013-08-19 2013-12-11 电子科技大学 Method for detecting threaded area peak line of screw
CN104024790A (en) * 2011-12-27 2014-09-03 新日铁住金株式会社 Method for measuring shape of threaded tube end portion
CN104567722A (en) * 2015-01-23 2015-04-29 成都实唯物联网科技有限公司 Internal thread detection device and method
CN105716528A (en) * 2016-05-09 2016-06-29 西安捷创测控技术有限公司 Oil pipe thread size parameter detection method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6111601A (en) * 1995-12-11 2000-08-29 Adachi; Yoshi Non-contacting laser gauge for qualifying screw fasteners and the like
CN104024790A (en) * 2011-12-27 2014-09-03 新日铁住金株式会社 Method for measuring shape of threaded tube end portion
CN103438827A (en) * 2013-08-19 2013-12-11 电子科技大学 Method for detecting threaded area peak line of screw
CN104567722A (en) * 2015-01-23 2015-04-29 成都实唯物联网科技有限公司 Internal thread detection device and method
CN105716528A (en) * 2016-05-09 2016-06-29 西安捷创测控技术有限公司 Oil pipe thread size parameter detection method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗冰心: "管螺纹在线视觉检测***研发", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN110500953B (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN109737874A (en) Dimension of object measurement method and device based on 3D vision technology
CN110084116A (en) Pavement detection method, apparatus, computer equipment and storage medium
US8233157B2 (en) Method and apparatus of a portable imaging-based measurement with self calibration
CN110266938B (en) Transformer substation equipment intelligent shooting method and device based on deep learning
CN110123257A (en) A kind of vision testing method, device, sight tester and computer storage medium
JP5479385B2 (en) Counting method and counting device for the number of steel materials in a bundle of steel materials
CN108801164B (en) Method and system for testing gap value of workpiece based on laser
CN110849324B (en) Long exposure oblique photography tunnel holographic measurement method
CN110207592A (en) Building cracks measurement method, device, computer equipment and storage medium
WO2022105676A1 (en) Method and system for measuring wear of workpiece plane
CN107504917B (en) Three-dimensional size measuring method and device
CN110634128A (en) Ball pin size detection method and device, computer equipment and storage medium
CN108776965B (en) Method, device and equipment for measuring straight line in image and storage medium
CN108871185A (en) Method, apparatus, equipment and the computer readable storage medium of piece test
CN112097672A (en) Method and system for measuring depth of tire tread
CN109781010A (en) A kind of point cloud data calculation method, the device and system of broad range of data splicing
CN110018529B (en) Rainfall measurement method, rainfall measurement device, computer equipment and storage medium
CN116222425A (en) Three-dimensional reconstruction method and system based on multi-view three-dimensional scanning device
CN114638795A (en) Multi-structure light measurement unit online measurement method and system
CN108520347A (en) Panoptic visualization grid voltage quality methods of exhibiting, system and computer equipment
CN110989344A (en) Automatic adjustment method and system for preset parameters of inspection robot
CN110500953A (en) Screw thread R value measurement method, device, computer equipment and storage medium
CN114430454A (en) Modeling method based on double cameras, wearable device, equipment and medium
CN117376717A (en) Camera disturbance correction method and system
CN115684165A (en) Positioning method of glass slide detector, detector and glass slide

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
GR01 Patent grant
GR01 Patent grant