Method and system for identifying and positioning mounting surface of laser radar rotating motor
Through the mounting surface recognition and positioning method of the lidar rotary motor, combined with machine vision and data analysis, the problem of low mounting positioning accuracy of the optical lens of the rotary motor is solved, high-precision lens installation is achieved, and product quality is improved.
Patent Information
- Application Number
- CN202411177115.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-26
AI Technical Summary
The positioning accuracy of the optical lens of the existing lidar rotary motor is low during the mounting process, which makes it difficult to install, affecting the control accuracy of the subsequent motor control system, and not being installed in place will affect product quality.
The mounting surface recognition and positioning method of the lidar rotary motor is adopted. Through machine vision technology and data analysis methods, the position reference coordinates and reference angles of the mounting surface of the rotary motor are obtained, and combined with the mechanical positioning mechanism, the optical lens is ensured accurately mounted.
It improves the mounting accuracy and yield of optical lenses, meets product process requirements, and ensures stable and accurate installation of optical lenses on rotating motors.
Smart Images

Figure CN119068046A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment mounting and positioning, and in particular to a mounting surface identification and positioning method of a laser radar rotating motor and a system thereof. Background Art
[0002] The laser radar is mainly composed of an optical system and a motor, among which the motor is the key part to realize the laser radar scanning. At present, an optical lens is mounted on the rotating motor mounting surface 33 of the laser radar, and the rotation angle and speed of the optical lens can be accurately controlled through the motor control system.
[0003] During the existing optical lens mounting process, the rotating motor is rotated so that the mounting surface 33 is rotated to a suitable mounting angle, and then the optical lens is mounted on the mounting surface 33. The optical lens mounting positioning requirements are high and the mounting difficulty is relatively large. If the mounting is not in place, it will affect the control accuracy of the subsequent motor control system on the optical lens. Motor mounting positioning is a key link in the laser radar manufacturing and assembly process. Therefore, it is urgent to develop a mounting surface identification and positioning method for the laser radar rotating motor to ensure that the optical lens can be accurately and stably installed in the specified position. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art.
[0005] To this end, the present invention provides a method for identifying and positioning the mounting surface of a laser radar rotating motor, which has high positioning accuracy and can ensure that the optical lens is accurately mounted at a specified position on the mounting surface 33 of the rotating motor.
[0006] According to the mounting surface identification and positioning method of the laser radar rotating motor according to the embodiment of the present invention, the method comprises the following steps:
[0007] S1, photographing the mounting surface in the horizontal direction of the rotating motor through the camera on the machine to obtain the original image;
[0008] S2, preprocessing the original image to obtain a target mounting area, and extracting feature information through an edge detection algorithm, wherein the feature information includes a detection frame and a plurality of frame lines;
[0009] S3, setting reference information, processing the detection frame and the plurality of frame lines by a data analysis method, and calculating the position reference coordinate A and reference angle of the mounting surface of the rotating motor in combination with the reference information;
[0010] S4, the suction mechanism on the machine platform sucks the optical lens and mounts the optical lens based on the position reference coordinate A and the reference angle.
[0011] The beneficial effect of the present invention is that the laser radar rotating motor mounting surface identification and positioning method of the present invention combines machine vision technology and data analysis methods to obtain the position reference coordinate A and reference angle of the mounting surface of the rotating motor, positions the rotating motor, and then absorbs the optical lens, and mounts the optical lens according to the position reference coordinate A and the reference angle. Under the premise of ensuring the positioning accuracy of the rotating motor, it can ensure that the optical lens can be accurately and stably installed on the mounting surface of the rotating motor. Due to the high positioning accuracy, the yield rate of optical lens mounting is also high, which can meet the product process requirements.
[0012] According to one embodiment of the present invention, step S2 specifically includes:
[0013] S21, grayscale processing the original image to obtain a grayscale image;
[0014] S22, adaptively adjusting the brightness of the grayscale image;
[0015] S23, filtering the grayscale image after brightness adjustment using a filter to obtain a filtered image;
[0016] S24, determining the target mounting area from the filtered image by using a preset Mark template;
[0017] S25, extracting edges of the target mounting area by using an edge detection algorithm to obtain the feature information.
[0018] According to one embodiment of the present invention, step S3 specifically includes the following steps:
[0019] S31, setting the reference information in the interactive interface, the reference information including: an offset distance D and a reference direction;
[0020] S32, the plurality of frame lines at least include a first longitudinal frame line L11, a second longitudinal frame line L21, a first transverse frame line L12, and a second transverse frame line L22, wherein the first longitudinal frame line L11 and the first transverse frame line L12 intersect at a point of intersection P1, and the second longitudinal frame line L21 and the second transverse frame line L22 intersect at a point of intersection P2;
[0021] S33, connecting the intersection point P1 and the intersection point P2 into a line segment, where the line segment is L3;
[0022] S34, calculating the center point P3 of the line segment L3;
[0023] S35, based on the reference direction and the center point P3, obtaining a perpendicular bisector L4 passing through the center point P3 and perpendicular to the line segment L3;
[0024] S36, determining a position reference point A of the mounting surface of the rotating electrical machine according to the center point P, the perpendicular midline L4 and the offset distance D, and then obtaining the coordinates of the position reference point A, wherein the position reference point A is on the perpendicular midline L4;
[0025] S37, calculating the slope between the center point P and the position reference point A, where the slope is a reference angle.
[0026] According to one embodiment of the present invention, in step S36, the coordinates of the position reference point A include:
[0027] Based on the pixel coordinate system, the pixel coordinates of the position reference point A are obtained;
[0028] According to the offset distance D and the conversion coefficient between the pixel offset distance and the offset distance D, the coordinates of the position reference point A are obtained.
[0029] According to one embodiment of the present invention, in step S2, obtaining the target mounting area further includes:
[0030] Process the filtered image through an adaptive threshold algorithm to obtain a binary image;
[0031] Connected domain detection is performed on the binary image to obtain the target mounting area.
[0032] According to one embodiment of the present invention, in step S1, the rotating motor of the laser radar is placed on a supporting seat of a machine platform, and the rotating motor is fixed by a mechanical positioning mechanism so that the mounting surface of the rotating motor is arranged in a horizontal direction.
[0033] A laser radar rotating motor mounting surface recognition and positioning system according to an embodiment of the present invention includes:
[0034] A rotating electrical machine, comprising a movable part and a fixed part, wherein the movable part is adapted to move on the fixed part, and a gap is provided between the movable part and the fixed part;
[0035] A visual controller for transmitting control signals;
[0036] A machine platform, used for mounting optical lenses when the movable part of the rotating motor is in a static state, and a camera is also arranged on the machine platform, and the camera takes a picture of the mounting surface of the rotating motor in a horizontal direction according to the control signal to obtain an original image;
[0037] An industrial computer, which executes the above-mentioned method for identifying and positioning the mounting surface of the laser radar rotating motor.
[0038] According to one embodiment of the present invention, the machine further includes:
[0039] A bearing seat for placing the rotating motor of the laser radar;
[0040] The mechanical positioning mechanism abuts against the movable part of the rotary motor to orient and lock the movable part of the rotary motor to limit the movement of the movable part, so that the mounting surface of the rotary motor is arranged in a horizontal direction.
[0041] According to one embodiment of the present invention, the mechanical positioning mechanism comprises a first locking assembly, and the first locking assembly comprises:
[0042] a first cylinder, wherein an output end of the first cylinder is adapted to be relatively close to or far away from a movable part of the rotating motor;
[0043] A limiter is provided at the output end of the first cylinder, and the limiter is suitable for abutting against a plane of the movable part of the rotating motor to limit the movable part of the rotating motor from moving in a first direction.
[0044] According to one embodiment of the present invention, the mechanical positioning mechanism further includes a second locking assembly, and the second locking assembly includes:
[0045] A second cylinder, wherein an output end of the second cylinder is arranged perpendicular to the bearing seat;
[0046] A pressing member, wherein the pressing member is connected to the output end of the second cylinder, and the pressing member passes through the bearing seat and can be pressed against the first cylinder to push the first cylinder to drive the limiting member to move toward the extending direction of the output end of the second cylinder until the limiting protrusion provided on the limiting member presses against the movable part of the rotating motor and maintains a set pressure to limit the movable part of the rotating motor from moving in the second direction.
[0047] According to one embodiment of the present invention, the mechanical positioning mechanism further includes a clamping mechanism, and the clamping mechanism includes:
[0048] A clamping cylinder, wherein the clamping cylinder has a linear movement stroke in a horizontal direction;
[0049] A clamping plate is connected to the clamping cylinder so that the clamping plate can be driven by the clamping cylinder to press the rotating motor onto the bearing seat.
[0050] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0051] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0053] Figure 1 It is a schematic diagram of the method flow of embodiment 1 of the present invention.
[0054] Figure 2 It is a schematic diagram of a binary image according to the first embodiment of the present invention.
[0055] Figure 3 2 is a schematic diagram of a structure in which a detection frame and a plurality of frame lines are connected according to a first embodiment of the present invention.
[0056] Figure 4 It is a schematic diagram of the partial structure of the system of the second embodiment of the present invention.
[0057] Figure 5 It is a three-dimensional structural diagram of the rotating motor clamping mechanism according to the second embodiment of the present invention.
[0058] Figure 6 This is a structural diagram of the rotating motor clamping mechanism according to the second embodiment of the present invention when the first locking assembly does not abut against the rotating part of the rotating motor.
[0059] Figure 7 This is a structural diagram of the first locking assembly of the rotating motor clamping mechanism according to the second embodiment of the present invention when it abuts against the rotating part of the rotating motor.
[0060] Figure 8 This is a structural diagram of the rotating motor clamping mechanism according to the second embodiment of the present invention when the second locking assembly is not in contact with the first locking assembly.
[0061] Fig. 9 This is a structural diagram of the second locking assembly of the rotating motor clamping mechanism according to the second embodiment of the present invention when the second locking assembly abuts against the first locking assembly.
[0062] Fig.10 This is a structural diagram of a rotating motor clamping mechanism according to a second embodiment of the present invention when the clamping assembly abuts against the fixed end of the rotating motor.
[0063] Fig.11 This is a structural diagram of a rotating motor of a rotating motor clamping mechanism according to the second embodiment of the present invention.
[0064] Fig.12 It is a structural diagram of a limiter of a rotating motor clamping mechanism according to the second embodiment of the present invention.
[0065] Fig.13 It is a schematic diagram of the computer device structure of the third embodiment of the present invention.
[0066] In the figure: 1. bearing seat;
[0067] 2. Visual controller;
[0068] 3. Rotating motor; 31. Moving part; 32. Fixed part; 33. Mounting surface; 34. Contact part;
[0069] 4. Camera;
[0070] 5. Mechanical positioning mechanism; 51. First locking assembly; 511. First cylinder; 512. Position limiting member; 5121. Position limiting main structure; 5122. Position limiting magnet; 5123. Position limiting protrusion; 52. Second locking assembly; 521. Second cylinder; 522. Pressing member;
[0071] 6. Industrial computer;
[0072] 7. Clamping mechanism; 71. Clamping cylinder; 72. Clamping plate; 721. Abutment portion;
[0073] 10. Computer device; 1002. Processor; 1004. Memory; 1006. Transmission device. DETAILED DESCRIPTION
[0074] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.
[0075] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0076] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0077] Example 1
[0078] The present application embodiment provides a method for identifying and locating the mounting surface of a laser radar rotating motor, such as Figure 1 As shown, the method comprises the following steps:
[0079] S1, photographing the mounting surface 33 of the rotating motor 3 in the horizontal direction through the camera 4 on the machine to obtain an original image.
[0080] S2, preprocessing the original image to obtain the target mounting area, and extracting feature information through an edge detection algorithm, wherein the feature information includes a detection frame and a plurality of frame lines.
[0081] S3, setting reference information, processing the detection frame and multiple frame lines by a data analysis method, and calculating the position reference coordinate A and reference angle of the mounting surface 33 of the rotating motor 3 in combination with the reference information.
[0082] S4, the suction mechanism on the machine platform sucks the optical lens and mounts the optical lens based on the position reference coordinate A and the reference angle.
[0083] Furthermore, step S2 specifically includes:
[0084] S21, grayscale processing is performed on the original image to obtain a grayscale image.
[0085] S22, adaptively adjusting the brightness of the grayscale image.
[0086] S23, filtering the grayscale image after brightness adjustment using a filter to obtain a filtered image.
[0087] S24, determining the target mounting area from the filtered image using a preset Mark template.
[0088] S25, extracting the edge of the target mounting area through an edge detection algorithm to obtain feature information.
[0089] It should be noted that the shape of the Mark template can be rectangular, square or other shapes, and is pre-set according to the size and shape of the mounting surface 33 of the rotating motor 3. Since the pre-set Mark template can directly determine the target mounting area, the processing process is simplified and the processing efficiency is improved.
[0090] In some embodiments, the filtered image can also be processed by an adaptive threshold algorithm to obtain a binary image, such as Figure 2 As shown in the figure, the connected domain detection is performed on the binary image to obtain the target mounting area. Although there is no need to pre-set the Mark template, the connected domain detection can be performed through the algorithm to obtain the target mounting area. However, compared with the scheme of determining the target mounting area from the filtered image using the pre-set Mark template, the processing of this method is cumbersome, the algorithm is relatively complex, and the detection efficiency is reduced. Furthermore, the contour detection algorithm based on the topological structure analysis of the binary image can be used to perform connected domain detection on the binary image, but it is not limited to this.
[0091] Further, such as Figure 3 As shown, step S3 specifically includes the following steps:
[0092] S31, setting reference information in the interactive interface, the reference information including: an offset distance D and a reference direction;
[0093] S32, the plurality of frame lines include at least a first longitudinal frame line L11, a second longitudinal frame line L21, a first transverse frame line L12 and a second transverse frame line L22, wherein the first longitudinal frame line L11 and the first transverse frame line L12 intersect at a point of intersection P1, and the second longitudinal frame line L21 and the second transverse frame line L22 intersect at a point of intersection P2.
[0094] S33, connecting the intersection point P1 and the intersection point P2 to form a line segment, and the line segment is L3.
[0095] S34, calculating the center point P3 of the line segment L3.
[0096] S35, based on the reference direction and the center point P3, obtain the perpendicular bisector L4 passing through the center point P3 and perpendicular to the line segment L3.
[0097] S36, according to the center point P, the perpendicular midline L4 and the offset distance D, determine the position reference point A of the mounting surface 33 of the rotating motor 3, and then obtain the coordinates of the position reference point A, wherein the position reference point A is on the perpendicular midline L4; more specifically, the coordinates of the position reference point A include:
[0098] Based on the pixel coordinate system, the pixel coordinates of the position reference point A are obtained.
[0099] According to the offset distance D and the conversion coefficient between the pixel offset distance and the offset distance D, the coordinates of the position reference point A are obtained.
[0100] S37, calculating the slope between the center point P and the position reference point A, where the slope is a reference angle.
[0101] In step S1, the rotating motor 3 of the laser radar is placed on the supporting base 1 of the machine, and the rotating motor 3 is fixed by the mechanical positioning mechanism 5 so that the mounting surface 33 of the rotating motor 3 is configured in the horizontal direction, thereby realizing the precise positioning of the rotating motor 3 by the supporting base 1 and improving the accuracy of identification and positioning.
[0102] Example 2
[0103] The embodiment of the present application provides a laser radar rotating motor mounting surface recognition and positioning system, such as Figure 4-12 As shown, including:
[0104] The rotating motor 3 comprises a movable part 31 and a fixed part 32, wherein the movable part 31 is adapted to move on the fixed part 32, and a gap is provided between the movable part 31 and the fixed part 32;
[0105] A visual controller 2, for transmitting control signals;
[0106] The machine is used to mount the optical lens when the movable part 31 of the rotating motor 3 is in a static state. The machine is also provided with a camera 4. The camera 4 takes a picture of the mounting surface 33 of the rotating motor 3 in a horizontal direction according to a control signal to obtain an original image.
[0107] The industrial computer 6 executes the above-mentioned method for identifying and positioning the mounting surface of the laser radar rotating motor.
[0108] like Figure 2 As shown, the machine also includes: a bearing seat 1 and a mechanical positioning mechanism 5. The bearing seat 1 is used to place the rotating motor 3 of the laser radar; the mechanical positioning mechanism 5 is against the movable part of the rotating motor 3 to orient and lock the movable part of the rotating motor 3 to limit the movement, so that the mounting surface 33 of the rotating motor 3 is arranged in the horizontal direction. The mechanical positioning mechanism 5 can fix the position of the movable part 31 of the rotating motor 3 to ensure that the position of the movable part 31 of the rotating motor 3 does not change when the lens is mounted, thereby ensuring the assembly accuracy of the lens and the rotating motor 3.
[0109] It should be noted that if Fig.11 As shown, the movable portion 31 is provided with a contact portion 34 relative to the mounting surface 33, which can abut against the mechanical positioning mechanism 5, and the contact surface between the contact portion 34 and the mechanical positioning mechanism 5 is a plane to ensure that the contact portion 34 and the mechanical positioning mechanism 5 are in surface contact when they abut against each other.
[0110] like Figure 6-9As shown, the mechanical positioning mechanism 5 includes a first locking assembly 51 and a second locking assembly 52, wherein the first locking assembly 51 is suitable for limiting the movement of the active part 31 of the rotating motor 3 in a first direction, and the second locking assembly 52 is suitable for limiting the movement of the active part 31 of the rotating motor 3 in a second direction, wherein the first direction is the rotation direction, and the second direction is the linear movement direction. Thus, through the mutual cooperation of the first locking assembly 51 and the second locking assembly 52, the directional locking of the active part 31 of the rotating motor 3 is effectively achieved.
[0111] The first locking assembly 51 includes: a first cylinder 511 and a limiter 512, wherein the output end of the first cylinder 511 is suitable for being relatively close to or away from the movable part 31 of the rotating motor 3; the limiter 512 is arranged at the output end of the first cylinder 511, and the limiter 512 is suitable for being against the plane of the movable part 31 of the rotating motor 3 to limit the movable part 31 of the rotating motor 3 from moving in the first direction, thereby avoiding the position deviation of the rotating motor 3 during the lens mounting process, and further improving the mounting accuracy of the optical lens.
[0112] The second locking assembly 52 includes: a second cylinder 521 and a pressing piece 522; the output end of the second cylinder 521 is arranged perpendicular to the supporting seat 1; the pressing piece 522 is connected to the output end of the second cylinder 521, and the pressing piece 522 passes through the supporting seat 1, and can be pressed against the first cylinder 511 to push the first cylinder 511 to drive the limiting piece 512 to move toward the extending direction of the output end of the second cylinder 521, until the limiting protrusion set on the limiting piece 512 is pressed against the movable part 31 of the rotating motor 3 and maintains the set pressure to limit the movable part 31 of the rotating motor 3 from moving in the second direction, further ensuring that the position of the movable part 31 of the rotating motor 3 does not change, and further ensuring the accuracy of the optical lens mounting based on the position reference coordinates and reference angles in subsequent steps.
[0113] like Fig.12 As shown, the limiting member 512 includes a limiting main body structure 5121, and a limiting magnet 5122 is further provided on the limiting main body structure 5121. The limiting magnet 5122 is provided corresponding to the movable part 31 of the rotating motor 3, and the movable part 31 of the rotating motor 3 can be magnetically adsorbed by the limiting magnet 5122. Through the magnetic adsorption, when the rotation angle of the movable part 31 of the rotating motor 3 is too large (the deflection angle of the mounting surface 33 on the movable part 31 is too large), the limiting magnet 5122 can adsorb the movable part 31 of the rotating motor 3, so that the position of the movable part 31 of the rotating motor 3 can be corrected, until the position of the mounting surface 33 on the movable part 31 is corrected to face upward, that is, the position of the mounting surface 33 is in the horizontal direction.
[0114] When the position of the movable part 31 of the rotating motor 3 is corrected, the movable part 31 of the rotating motor 3 is limited in the linear movement direction by the limiting protrusion 5123 provided on the limiting main structure 5121. The limiting protrusion 5123 is provided on a side edge close to the rotating motor 3. When the output end of the second cylinder 521 drives the pressing member 522 to abut against the lifting cylinder, and then the output end of the second cylinder 521 continues to extend, so as to push the lifting cylinder to move along the output direction of the second cylinder 521 through the pressing member 522, at this time, the lifting cylinder drives the limiting member 512 to move synchronously, and the limiting protrusion 5123 provided on the limiting member 512 abuts against the side edge of the movable part 31 of the rotating motor 3, and when the two abut against each other, After that, the second cylinder 521 continuously applies force to the lifting cylinder through the pressing member 522, so that the lifting cylinder drives the limiting protrusion 5123 on the limiting member 512 to continue to act on the movable part 31 of the rotating motor 3, until a set pressure is generated between the limiting protrusion 5123 and the movable part 31 of the rotating motor 3. In this embodiment, the pressure between the limiting protrusion 5123 and the movable part 31 is set to 5 Newtons, and after maintaining this pressure value, the purpose of limiting the movable part 31 of the rotating motor 3 to produce linear movement can be achieved. It should be noted that the pressure between the limiting protrusion 5123 and the movable part 31 can be adjusted according to actual needs and is not limited to the above pressure value.
[0115] like Fig.10 As shown, the machine also includes a clamping mechanism 7, which is arranged below the supporting seat 1, and the clamping mechanism 7 includes: a clamping cylinder 71 and a clamping plate 72, the clamping cylinder 71 has a linear moving stroke in the horizontal direction; the clamping plate 72 is connected to the clamping cylinder 71, and a contact portion 721 suitable for contacting with the fixed portion 32 of the rotating motor 3 is provided on the side of the clamping plate 72 opposite to the rotating motor 3. Therefore, the clamping plate 72 can be adjusted to be close to or away from the fixed portion 32 of the rotating motor 3 through the telescopic movement of the clamping cylinder 71. When the rotating motor 3 needs to be clamped, the clamping cylinder 71 can be retracted to make the clamping plate 72 close to the fixed portion 32 of the rotating motor 3 until the contact portion 721 of the clamping plate 72 contacts the surface of the fixed portion 32 of the rotating motor 3, that is, the clamping and fixing of the rotating motor 3 is realized, thereby avoiding the position displacement of the rotating motor 3 during the lens mounting process, and further improving the mounting accuracy of the optical lens.
[0116] It should be noted that Figures 5 to 10 is a schematic diagram showing that the mounting surface 33 has been mounted with an optical lens. Fig.11 Schematic diagram of the mounting surface 33 of the rotating motor 3 without an optical lens mounted thereon.
[0117] During the mounting process of the optical lens, a set pressure, such as 5 Newtons, is generated between the limiting protrusion 5123 and the movable part 31 of the rotating motor 3. The suction mechanism sucks the optical lens and places the optical lens on the mounting surface 33 of the rotating motor 3. During mounting, the optical lens will generate pressure, such as 10 Newtons, on the mounting surface 33 of the rotating motor 3. The two pressures generated can further prevent the rotating motor 3 from shifting its position during the lens mounting process.
[0118] To sum up, the laser radar rotating motor mounting surface identification and positioning method and system of the present invention fixes the mounting surface 33 of the rotating motor 3 horizontally through the mechanical positioning mechanism 5, combines machine vision technology and data analysis methods to obtain the position reference coordinate A and reference angle of the mounting surface 33 of the rotating motor 3, positions the rotating motor 3, and then absorbs the optical lens, and mounts the optical lens according to the position reference coordinate A and the reference angle. Under the premise of ensuring the positioning accuracy of the rotating motor 3, it can ensure that the optical lens can be accurately and stably installed on the mounting surface 33 of the rotating motor 3. Due to the high positioning accuracy, the yield rate of optical lens mounting is also high, which can meet the product process requirements.
[0119] Example 3
[0120] An embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement a method for identifying and positioning the mounting surface of a laser radar rotating motor as provided in the above method embodiment.
[0121] Fig.13 The hardware structure diagram of a device for implementing a method for identifying and locating the mounting surface of a laser radar rotating motor provided in an embodiment of the present application is shown. The device may participate in constituting or include the apparatus or system provided in an embodiment of the present application. Fig.13 As shown, the computer device 10 may include one or more processors 1002 (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1004 for storing data, and a transmission device 1006 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera 4. It can be understood by those skilled in the art that Fig.13 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.13 More or fewer components as shown, or with Fig.13 Different configurations shown.
[0122] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer device 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0123] The memory 1004 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the mounting surface identification and positioning method of a laser radar rotating motor in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 1004, that is, realizing the above-mentioned method. The memory 1004 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1004 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer device 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0124] The transmission device 1006 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer device 10. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 1006 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0125] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer device 10 (or mobile device).
[0126] Example 4
[0127] An embodiment of the present application also provides a computer-readable storage medium, which can be set in a server to store at least one instruction or at least one program related to a method for implementing a laser radar rotating motor mounting surface identification and positioning method in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement a method for implementing a laser radar rotating motor mounting surface identification and positioning method provided in the above method embodiment.
[0128] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0129] Example 5
[0130] The embodiment of the present invention further provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes a method for identifying and locating the mounting surface of a laser radar rotating motor provided in the above various optional embodiments.
[0131] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of the present application are described. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0132] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0133] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0134] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A method for identifying and locating the mounting surface of a laser radar rotating motor, characterized in that: The method comprises the following steps: S1, photographing a mounting surface (33) on a rotating motor (3) in a horizontal direction by using a camera (4) on a machine platform to obtain an original image; S2, preprocessing the original image to obtain a target mounting area, and extracting feature information through an edge detection algorithm, wherein the feature information includes a detection frame and a plurality of frame lines; S3, setting reference information, processing the detection frame and the plurality of frame lines by a data analysis method, and calculating the position reference coordinate A and reference angle of the mounting surface (33) of the rotating motor (3) in combination with the reference information; S4, the suction mechanism on the machine platform sucks the optical lens and mounts the optical lens based on the position reference coordinate A and the reference angle.
2. The method for identifying and locating the mounting surface of a laser radar rotating motor according to claim 1, characterized in that: The step S2 specifically includes: S21, grayscale processing the original image to obtain a grayscale image; S22, adaptively adjusting the brightness of the grayscale image; S23, filtering the grayscale image after brightness adjustment using a filter to obtain a filtered image; S24, determining the target mounting area from the filtered image by using a preset Mark template; S25, extracting edges of the target mounting area by using an edge detection algorithm to obtain the feature information.
3. The method for identifying and locating the mounting surface of a laser radar rotating motor according to claim 2, characterized in that: The step S3 specifically comprises the following steps: S31, setting the reference information in the interactive interface, the reference information including: an offset distance D and a reference direction; S32, the plurality of frame lines at least include a first longitudinal frame line L11, a second longitudinal frame line L21, a first transverse frame line L12, and a second transverse frame line L22, wherein the first longitudinal frame line L11 and the first transverse frame line L12 intersect at a point of intersection P1, and the second longitudinal frame line L21 and the second transverse frame line L22 intersect at a point of intersection P2; S33, connecting the intersection point P1 and the intersection point P2 into a line segment, where the line segment is L3; S34, calculating the center point P3 of the line segment L3; S35, based on the reference direction and the center point P3, obtaining a perpendicular bisector L4 passing through the center point P3 and perpendicular to the line segment L3; S36, determining a position reference point A of a mounting surface (33) of the rotating electrical machine (3) according to the center point P, the perpendicular midline L4, and the offset distance D, and then obtaining the coordinates of the position reference point A, wherein the position reference point A is on the perpendicular midline L4; S37, calculating the slope between the center point P and the position reference point A, where the slope is a reference angle.
4. The method for identifying and locating the mounting surface of a laser radar rotating motor according to claim 3, characterized in that: In step S36, the coordinates of the position reference point A include: Based on the pixel coordinate system, the pixel coordinates of the position reference point A are obtained; According to the offset distance D and the conversion coefficient between the pixel offset distance and the offset distance D, the coordinates of the position reference point A are obtained.
5. The method for identifying and locating the mounting surface of a laser radar rotating motor according to claim 2, characterized in that: In step S2, obtaining the target mounting area further includes: Process the filtered image through an adaptive threshold algorithm to obtain a binary image; Perform connected domain detection on the binary image to obtain the target mounting area.
6. The method for identifying and locating the mounting surface of a laser radar rotating motor according to claim 1, characterized in that: In step S1, the rotating motor (3) of the laser radar is placed on the supporting base (1) of the machine platform, and the rotating motor (3) is fixed by a mechanical positioning mechanism (5) so that the mounting surface (33) of the rotating motor (3) is arranged in a horizontal direction.
7. A laser radar rotating motor mounting surface recognition and positioning system, characterized in that: include: A rotating electric machine (3) comprises a movable part (31) and a fixed part (32), wherein the movable part (31) is adapted to move on the fixed part (32), and a gap is provided between the movable part (31) and the fixed part (32); A visual controller (2) for transmitting control signals; A machine platform, used for mounting an optical lens when a movable part (31) of a rotating motor (3) is in a static state, and a camera (4) is also arranged on the machine platform, and the camera (4) takes a picture of a mounting surface (33) on the rotating motor (3) in a horizontal direction according to the control signal to obtain an original image; An industrial computer (6), wherein the industrial computer (6) executes the mounting surface identification and positioning method of the laser radar rotating motor according to any one of claims 1 to 6.
8. The laser radar rotating motor mounting surface identification and positioning system as claimed in claim 7, characterized in that: The machine also includes: A bearing seat (1) for placing a rotating motor (3); The mechanical positioning mechanism (5) abuts against the movable part (31) of the rotating motor (3) to orient and lock the movable part (31) of the rotating motor (3) to limit the movement, so that the mounting surface (33) of the rotating motor (3) is arranged in a horizontal direction.
9. The laser radar rotating motor mounting surface recognition and positioning system as claimed in claim 8, characterized in that: The mechanical positioning mechanism (5) comprises a first locking assembly (51), wherein the first locking assembly (51) comprises: a first cylinder (511), wherein an output end of the first cylinder (511) is adapted to be relatively close to or far away from a movable part (31) of the rotating motor (3); A limit member (512), the limit member (512) being arranged at the output end of the first cylinder (511), the limit member (512) being adapted to abut against a plane of the movable part (31) of the rotating motor (3) so as to limit the movable part (31) of the rotating motor (3) from moving in a first direction.
10. The laser radar rotating motor mounting surface recognition and positioning system according to claim 9, characterized in that: The mechanical positioning mechanism (5) further comprises a second locking assembly (52), wherein the second locking assembly (52) comprises: A second cylinder (521), wherein an output end of the second cylinder (521) is arranged perpendicular to the bearing seat (1); A pressing member (522), the pressing member (522) being connected to the output end of the second cylinder (521), and the pressing member (522) passing through the bearing seat (1) and being able to abut against the first cylinder (511) to push the first cylinder (511) to drive the limiting member (512) to move in the extending direction of the output end of the second cylinder (521) until the limiting protrusion provided on the limiting member (512) abuts against the movable part (31) of the rotating motor (3) and maintains a set pressure to limit the movable part (31) of the rotating motor (3) from moving in the second direction.
11. The laser radar rotating motor mounting surface recognition and positioning system according to claim 8, characterized in that: The machine platform further comprises a clamping mechanism (7), wherein the clamping mechanism (7) comprises: A clamping cylinder (71), wherein the clamping cylinder (71) has a linear movement stroke in a horizontal direction; A clamping plate (72), wherein the clamping plate (72) is connected to the clamping cylinder (71) so that the clamping plate (72) can be driven by the clamping cylinder (71) to press the rotating motor (3) onto the supporting seat (1).
Citation Information
Patent Citations
Intelligent card chip mounting visual detection system and detection method
CN111307833A
Identification positioning method and system based on edge feature point set registration, and storage medium
CN115170669A
Corner point detection-based element identification and positioning method and system, and storage medium
CN115511966A
Chip positioning method and device based on multi-feature fusion, equipment and medium
CN117011320A
Method for improving Mark positioning point and differential edge detection method for chip patch
CN118505587A
