Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus.
The invention provides a data processing system for detecting the surface roughness of an object, which comprises: a mechanism for detecting object surface roughness, a processor and a memory storing a computer program, wherein the mechanism for detecting object surface roughness comprises: a lens assembly 3, a target emitter 2 and m target receivers 1 corresponding to the target emitter 2, and an isolation diaphragm 5, wherein the lens assembly 3 is disposed on a transmitting end side of the target emitter 2, the target emitter 2 is communicatively connected to a processor, and the processor is communicatively connected to each target receiver 1, and when a computer program is executed by the processor, the following steps are implemented, as shown in fig. 1 and fig. 2:
s100, obtain target receiver ID list a = { a = { a } 1 ,A 2 ,……,A i ,……,A m },A i For the ith target receiver ID, i =1,2 \8230; \8230m.
Specifically, the target receiver ID is a unique identification of the target receiver 1.
Specifically, the lens assembly 3 includes a first plano-convex lens and a second plano-convex lens 32, the second plano-convex lens 32 is disposed on a convex side of the first plano-convex lens, wherein a center point of the first plano-convex lens and a center point of the second plano-convex lens 32 are disposed on a straight line, and a distance between the center point of the first plano-convex lens 31 and the center point of the second plano-convex lens 32 is smaller than a thickness of the first plano-convex lens 31.
Further, the lens assembly 3 is a unitary structure.
Further, the focal length of the second plano-convex lens 32 is smaller than that of the first plano-convex lens 31.
Specifically, the isolation diaphragm 5 is used for isolating light beams except for the light beam emitted by the target emitter 2 and the reflected light beam passing through the second plano-convex lens 32, wherein the target emitter 2 is arranged inside the isolation diaphragm 5, and one end of the isolation diaphragm 5 is connected with the junction of the first plano-convex lens 31 and the second plano-convex lens 32.
Further, the target emitter 2 is disposed on the plane side of the first plano-convex lens 31 and the target emitter 2 is at the focus of the second plano-convex lens 32.
Further, m target receivers 1 are located on a circular ring centered on a point on the main optical axis of the first plano-convex lens 31 and the distance between the target receivers 1 and the first plano-convex lens 31 is greater than or equal to the focal length of the second plano-convex lens 32; however, those skilled in the art know that any optional receiver in the prior art and the distance between any optional receiver and the first plano-convex lens are within the protection scope of the present invention, and are not described herein again.
Preferably, the target receiver 1 is a CMOS image sensor, which has the characteristics of high sensitivity and high contrast, and is low in cost, and has higher practicability for this embodiment compared with other types of receivers, by processing the area of the light spot generated by the CMOS image sensor, roughness is obtained, the data amount is small, and the process is simple, which is beneficial to improving the efficiency of system operation.
Specifically, the upper limit of the receiving area of the target receiver 1 is flush with the upper limit of the reflected light receiving area corresponding to the lens assembly 3, and the lower limit of the receiving area of the target receiver 1 is flush with the lower limit of the reflected light receiving area corresponding to the lens assembly 3, where the upper limit of the reflected light receiving area is at the intersection of the first plano-convex lens 31 and the second plano-convex lens 32, and the upper limit of the reflected light receiving area is at the edge of the first plano-convex lens 31.
Specifically, the object 4 to be detected is disposed on one side of the convex surface of the lens assembly 3, and the distance between the object 4 to be detected and the lens assembly 3 is a fixed value, as known to those skilled in the art, any optional vertical distance between the object to be detected and the lens assembly in the prior art belongs to the protection scope of the present invention, and is not described herein again.
Preferably, the distance between the object 4 to be detected and the lens assembly 3 is the focal length of the first convex lens 31, so that the situation that the distance between the object to be detected and the lens assembly is too small or too large, which causes that the light beam received by the receiver is not complete enough, the light spot generated by the target receiver is inaccurate, and further the roughness with larger error is obtained is avoided.
Above-mentioned, the light beam of the object after reflecting of waiting to detect of receiver, the receiver can generate complete facula, compares in prior art, the incomplete condition of signal that the receiver sent can not appear to only handle the facula area that the receiver generated and acquire the roughness, and the data volume is less, can improve system operating efficiency, is favorable to improving and acquires the precision of waiting to detect the object roughness.
In a specific embodiment, after the step S100, the method includes the following steps:
s200, obtaining a first light spot area list S = { S } corresponding to a target receiver 1 ,S 2 ,……,S m },S i Is A i The corresponding area of the first light spot is the area corresponding to the light spot generated by the receiver receiving the light beam reflected by the surface of the object 4 to be detected; those skilled in the art will understand that any method for obtaining the area of the light spot generated by the light beam received by the receiver in the prior art falls within the scope of the present invention, and will not be described herein again.
S300, acquiring a first roughness F according to the S, wherein F meets the following conditions:
F=α 3 ×(∑ m i=1 S i /m)+β 3 wherein α is 3 Is a preset first weight, beta, for obtaining the roughness of the target 3 For the preset second weight for obtaining the roughness of the target, those skilled in the art know that any optional first weight and second weight in the prior art belong to the protection scope of the present invention, and are not described herein again.
S400, when F is less than or equal to F 0 When the roughness of the object 4 to be detected is 0, namely the surface of the object 4 to be detected is smooth, otherwise, the roughness of the object 4 to be detected is F, F 0 For the preset roughness threshold, those skilled in the art know that any optional roughness threshold in the prior art falls within the scope of the present invention, and will not be described herein again.
Above-mentioned, can handle the facula area that target receiver generated, acquire first roughness, compare first roughness, when confirming to detect the object surface and be smooth, need not to acquire the roughness, otherwise, acquire the roughness of detecting the object, can directly judge whether it is crude and acquire its roughness to detect the object, save systematic processing procedure, improve the operating efficiency of system.
In another specific embodiment, after the step S100, the method further includes the following steps:
s200, obtaining a target light spot area list B = { B ] corresponding to a target receiver 1 ,B 2 ,……,B i ,……,B m },B i =(B i1 ,B i2 ),B i1 Is A i Corresponding first target spot area, B i2 Is A i A corresponding second target light spot area, wherein the first target light spot area is the light spot area of the target light beam reflected to the first receiving area through the surface of the object 4 to be detected, and the second target light spot area is the light spot area of the target light beam reflected to the second receiving area through the surface of the object 4 to be detected; the area of the light spot is received by the receiverThe area corresponding to the light spot generated by the light beam reflected by the surface of the object 4 to be detected; those skilled in the art will understand that any method for obtaining the area of the light spot generated by the light beam received by the receiver in the prior art falls within the scope of the present invention, and will not be described herein again.
Specifically, the receiving area of the target receiver 1 includes a first receiving area and a second receiving area, wherein the first receiving area is disposed on a side of the target receiver 1 close to the focal point of the first plano-convex lens 31, and the second receiving area is disposed on a side of the target receiver 1 away from the focal point of the first plano-convex lens 31.
Further, the target beam is a collimated beam emitted from the target emitter 2.
Further, B i1 And B i2 The condition that the cell is not Null at the same time is satisfied, and the condition can be understood as follows: b is i1 Number of Null and B i2 Not equal to Null or B i1 Not equal to Null and B i2 =Null。
In particular, null is a Null value, which can be understood as no result.
And S300, acquiring the target roughness D corresponding to the target receiver according to the B.
Specifically, the step S300 further includes the following steps:
s301, when all B i2 When the light spot areas are all Null, a first intermediate light spot area list C = { C is obtained 1 ,C 2 ,……,C i ,……,C m Get B out of i1 As C i 。
S303, obtaining D according to the C, wherein the D meets the following conditions:
D=α 1 ×(∑ m i=1 C i /m)+β 1 wherein α is 1 For obtaining a first predetermined weight, beta, of the roughness of the target 1 For obtaining the second preset weight of the target roughness, those skilled in the art know that any optional first preset weight and second preset weight in the prior art belong to the protection scope of the present invention, and are not described herein again.
S305, when all B i1 When the light spot areas are all Null, a second intermediate light spot area list C is obtained 0 ={C 0 1 ,C 0 2 ,……,C 0 i ,……,C 0 m Get B out of i2 As C 0 i 。
S307, according to C 0 And D is obtained.
Further, the step S307 further includes the steps of:
s3071, traverse C 0 Obtaining C 0 max And C 0 min Wherein, C 0 max Is C 0 Second maximum intermediate spot area, C 0 min Is C 0 The smallest second intermediate spot area.
S3072, when Δ C 0 And when the value is less than or equal to U, obtaining D, where U is a preset spot area difference threshold, and a person skilled in the art knows that any optional spot area difference threshold in the prior art belongs to the protection scope of the present invention, and details are not described herein.
In particular,. DELTA.C 0 The following conditions are met:
ΔC 0 =C 0 max -C 0 min 。
specifically, D satisfies the following condition:
D=α 2 ×(∑ m i=1 C 0 i /m)+β 2 wherein α is 2 For obtaining a third predetermined weight, beta, of the roughness of the target 2 For obtaining the fourth preset weight of the target roughness, those skilled in the art know that any optional third preset weight and fourth preset weight in the prior art belong to the protection scope of the present invention, and are not described herein again.
S3073, when Δ C 0 When the number is more than U, C is obtained 0 Corresponding specified spot area list G = { G = 1 ,G 2 ,……,G x ,……,G p },G x ={G x1 ,G x2 ,……,G xy ,……,G xq(x) },G xy Is C 0 Corresponding x-th fingerThe y-th designated spot area within the fixed spot area, x =1,2 \8230, p, is the number of designated spot areas, y =1,2 \8230;, q (x), q (x) is the designated spot area within the x-th designated spot area.
Further, Σ p x=1 (∑ q(x) y=1 G xy )=m。
Further, the specified light spot area refers to a second intermediate light spot area in the specified light spot area, where the specified light spot area is an area constructed by receiving areas of a plurality of adjacent target receivers 1, and a person skilled in the art knows that the specified light spot area divided according to actual requirements is not described herein again.
S3074, go through G x Obtaining G 0x max And G 0x min Wherein G is 0x max Is G x Medium maximum specified spot area, G 0x min Is G x The smallest specified spot area.
S3075 when Δ G x If > U, deleting G from G x Obtaining a key light spot area list G corresponding to G 0 ={G 0 1 ,G 0 2 ,……,G 0 r ,……,G 0 z },G 0 r ={G 0 r1 ,G 0 r2 ,……,G 0 rg ,……,G 0 rs(r) },G 0 rg Is C 0 The method comprises the steps that the corresponding g key light spot area in the r key light spot area is r =1,2 \8230, 8230, z is the number of key light spot areas, g =1,2 \8230, 8230, s (r) and s (r) are the key light spot areas in the x key light spot area, wherein the key light spot areas are any appointed light spot areas after the appointed light spot areas which are not smaller than a preset light spot area difference threshold value are deleted from an appointed light spot area list.
Specifically,. DELTA.G x The following conditions are met:
ΔG x =G 0x max -G 0x min 。
s3076, according to G 0 And D is obtained, and the D meets the following conditions:
D=α 2 ×(∑ z r=1 ∑ s(r) g=1 G 0 rg /∑ z r=1 s(r))+β 2 。
s3077, when Δ G x When U is less than or equal to U, D is obtained, and the D meets the following conditions:
D=α 2 ×(∑ p x=1 ∑ q(x) y=1 G xy /m)+β 2 。
the light spots generated by the target receiver are analyzed, when the area of the first intermediate light spot is obtained, it is indicated that the roughness of the object to be detected is consistent and the object to be detected does not have an abnormal area, when the area of the second intermediate light spot is obtained, it is indicated that the roughness of the object to be detected is consistent, when the difference of the areas of the divided areas is not smaller than a preset threshold value of the difference of the areas of the light spots, the area is determined to be an abnormal area, in the process of obtaining the roughness, the abnormal area is not processed, errors caused by data of the abnormal area can be reduced, the accuracy of obtaining the target roughness is improved, and it can be determined that the surface roughness of the object to be detected is consistent.
S309, when any B i2 When not Null and except for B i1 When the area of any other first target light spot is not Null, obtaining D = { D = { D = } 1 ,D 2 In which D is 1 Is a first target roughness, D 2 Is a second target roughness.
Further, the step S309 further includes the steps of:
s3091, when any one B i2 When not Null and except for B i1 When any other first target light spot area is not Null, acquiring a third intermediate light spot area list H = { H = 1 ,H 2 ,……,H j ,……,H n And fourth intermediate spot area list H 0 ={H 0 1 ,H 0 2 ,……,H 0 t ,……,H 0 k },H j J =1,2 \ 8230for the jth third intermediate spot area8230that n is the number of the third intermediate light spots and H 0 t T =1,2 \ 8230, k \ 8230and k is the number of the fourth intermediate light spot areas, wherein the third intermediate light spot area is a first target light spot area which is not Null in the target light spot areas, and the fourth intermediate light spot area is a second target light spot area which is not Null in the target light spot areas.
Further, it can be understood that: when all B are i2 Not all are Null and all B i1 And when the light spot area is not completely Null, namely k + n = m, and both k and n are less than m and both k and n are not equal to 0, acquiring a third intermediate light spot area list and a fourth intermediate light spot area list.
S3093, according to H, obtaining D 1 ,D 1 The following conditions are met:
D 1 =α 1 ×(∑ n j=1 H j /n)+β 1 。
s3095, according to H 0 Obtaining D 2 ,D 2 The following conditions are met:
D 2 =α 2 ×(∑ k t=1 H 0 t /k)+β 2 。
above-mentioned, when acquireing third middle facula area and fourth middle facula area, handle third middle facula area and fourth middle facula area respectively, can judge that the roughness of waiting to detect the object is inconsistent and can acquire the roughness that waits to detect the object difference, be favorable to improving the precision of acquireing the target roughness.
In another specific embodiment, after the step S300, the method includes the following steps:
s400, in a preset direction, acquiring a third target roughness list W = { W } corresponding to a target receiver 1 ,W 2 ,……,W v ,……,W z },W v For the v third target roughness corresponding to the target receiver in the preset direction, v =1,2 \8230; \8230, z is the number of third target roughness corresponding to the target receiver in the preset direction, wherein the skilled person will know that any optional pre-target roughness in the prior artAll the directions belong to the protection scope of the present invention, and are not described herein again.
Specifically, in step S400, the method for obtaining any third target roughness corresponding to the target receiver is the same as the step for obtaining the target roughness corresponding to the target receiver in step S300, and is not repeated herein.
Specifically, in the step S400, the method further includes the following steps of determining the degree of change in the roughness of the object 4 to be detected:
s401, when W v Are all greater than W v+1 Marking the object 4 to be detected in a preset direction to generate a mark of '0' of the object 4 to be detected, wherein when W is v =(W v1 ,W v2 ) When W is v1 Are all greater than W (v+1)1 ,W v2 Are all greater than W (v+1)2 。
Further, the mark "0" represents that the roughness of the object to be detected is in a decreasing state in the preset direction.
S403, when W v Are all less than W v+1 Marking the object 4 to be detected in a preset direction to generate a mark 1 of the object 4 to be detected, wherein when W is v =(W v1 ,W v2 ) When W is v1 Are all less than W (v+1)1 ,W v2 Are all less than W (v+1)2 。
Further, the mark "1" represents that the roughness of the object to be detected is in a large state in the preset direction.
S405, when W v Are all equal to W v+1 Marking the object 4 to be detected in a preset direction to generate a mark 2 of the object 4 to be detected, wherein when W is v =(W v1 ,W v2 ) When W is v1 Are all equal to W (v+1)1 ,W v2 Are all equal to W (v+1)2 。
Further, the mark "2" is characterized in that the roughness of the object to be detected is in an unchanged state in the preset direction.
S407, when W exists v And W v+1 Satisfied equality condition and W v+1 And W v+2 When the equality conditions are not the same, in the preset sideUpwards marking the object 4 to be detected to generate the mark of the object 4 to be detected as 3, wherein when W is v =(W v1 ,W v2 ) When W is v1 And W (v+1)1 Satisfied equality condition and W (v+1)1 And W (v+2)1 The equality conditions satisfied are not the same, W v2 And W (v+1)2 Satisfied equality condition and W (v+1)2 And W (v+2)2 The equation conditions satisfied are not the same.
Further, the mark "3" is characterized in that the roughness of the object to be detected is in an irregular changing state in the preset direction.
In this way, the roughness of the third target is obtained in the preset direction, and the change of the roughness of the object to be detected in the preset direction can be analyzed.
And S500, acquiring the final target roughness Q according to W.
Specifically, S500 includes the following steps:
s501, when W v ≠(W v1 ,W v2 ) And then, obtaining Q, wherein the Q meets the following conditions:
Q=(Σ z v=1 W v )/z。
s503, when W v =(W v1 ,W v2 ) Then, Q = { Q ] is obtained 1 ,Q 2 Q satisfies the following condition:
Q 1 =(Σ z v=1 W v1 )/z;Q 2 =(Σ z v=1 W v2 )/z。
in this way, a plurality of third target roughnesses are obtained, and the third target roughnesses are processed, so that compared with the embodiment, the multipoint roughness detection is performed on the object to be detected, whether the multipoint roughness of the object to be detected is consistent can be judged, the change state of the roughness of the object to be detected is further obtained, the multipoint roughness of the object to be detected is processed, and further more accurate roughness is obtained.
The invention provides a data processing system for detecting the surface roughness of an object, which comprises: a detected object surface roughness mechanism, a processor, and a memory storing a computer program, wherein the detected object surface roughness mechanism comprises: the target transmitter is connected with a processor in a communication way, the processor is connected with each target receiver in a communication way, and when a computer program is executed by the processor, the following steps are realized: acquiring an ID list of a target receiver; acquiring a target light spot area list corresponding to a target receiver according to the ID list of the target receiver; acquiring target roughness corresponding to a target receiver according to the target light spot area list; therefore, on one hand, the light beam received by the receiver is the light beam reflected by the object to be detected and passing through the lens assembly, the receiver can generate a complete light spot, the area of the light spot generated by the receiver is processed, and the accuracy of obtaining the roughness of the object to be detected is improved.
Although some specific embodiments of the present invention have been described in detail by way of illustration, it should be understood by those skilled in the art that the above illustration is only for the purpose of illustration and is not intended to limit the scope of the invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.